Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Continuous_Validation_PIDWithResetScale",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Continuous_Validation_PIDWithResetScale",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.356/1.356, allocations: 289.8 MB / 297.1 MB, free: 6.691 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001119/0.001119, allocations: 181.3 kB / 366.3 MB, free: 2.012 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.083/1.083, allocations: 205.2 MB / 0.6256 GB, free: 5.867 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007816/0.0007816, allocations: 92.73 kB / 0.7396 GB, free: 39.7 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2006/0.2014, allocations: 122.4 MB / 0.8591 GB, free: 13.29 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4523/0.6537, allocations: 116.3 MB / 0.9727 GB, free: 68.39 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1373/0.791, allocations: 140 MB / 1.109 GB, free: 8.477 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001554/0.7912, allocations: 72.56 kB / 1.109 GB, free: 8.406 MB / 0.7136 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.02862/0.8198, allocations: 11.08 MB / 1.12 GB, free: 13.28 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.457e-05/0.8199, allocations: 8 kB / 1.12 GB, free: 13.27 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001746/0.8201, allocations: 79.16 kB / 1.12 GB, free: 13.2 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000822/0.8209, allocations: 468.2 kB / 1.121 GB, free: 12.7 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.424e-05/0.8209, allocations: 16 kB / 1.121 GB, free: 12.68 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.103e-05/0.821, allocations: 39.91 kB / 1.121 GB, free: 12.64 MB / 0.7292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005338/0.8216, allocations: 282 kB / 1.121 GB, free: 12.37 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006095/0.8222, allocations: 393 kB / 1.122 GB, free: 11.97 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.46e-05/0.8222, allocations: 0 / 1.122 GB, free: 11.97 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.203e-05/0.8222, allocations: 0 / 1.122 GB, free: 11.97 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.204e-05/0.8223, allocations: 12 kB / 1.122 GB, free: 11.96 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002064/0.8243, allocations: 1.475 MB / 1.123 GB, free: 10.43 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000321/0.8247, allocations: 222.8 kB / 1.123 GB, free: 10.2 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004265/0.8251, allocations: 244.8 kB / 1.123 GB, free: 9.961 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 3.77e-05/0.8252, allocations: 8 kB / 1.123 GB, free: 9.953 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003206/0.8255, allocations: 206.2 kB / 1.124 GB, free: 9.742 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=47): time 1.834e-06/0.8255, allocations: 0 / 1.124 GB, free: 9.742 MB / 0.7292 GB Notification: Performance of matching and sorting (n=47): time 0.0005815/0.8261, allocations: 342.7 kB / 1.124 GB, free: 9.402 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.257e-05/0.8261, allocations: 124.7 kB / 1.124 GB, free: 9.254 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002924/0.8264, allocations: 297.9 kB / 1.124 GB, free: 8.953 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 5.127e-05/0.8265, allocations: 29.7 kB / 1.124 GB, free: 8.918 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001319/0.8266, allocations: 216.8 kB / 1.125 GB, free: 8.703 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 9.603e-05/0.8267, allocations: 141.8 kB / 1.125 GB, free: 8.562 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.482e-05/0.8268, allocations: 8 kB / 1.125 GB, free: 8.555 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001332/0.8269, allocations: 350.8 kB / 1.125 GB, free: 8.203 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002885/0.8272, allocations: 153 kB / 1.125 GB, free: 8.055 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003302/0.8276, allocations: 253.8 kB / 1.125 GB, free: 7.777 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005316/0.8281, allocations: 200.6 kB / 1.126 GB, free: 7.582 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.8281, allocations: 0 / 1.126 GB, free: 7.582 MB / 0.7292 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0009738/0.8291, allocations: 0.4987 MB / 1.126 GB, free: 7.078 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002149/0.8293, allocations: 0.6178 MB / 1.127 GB, free: 6.414 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.5e-05/0.8293, allocations: 7.906 kB / 1.127 GB, free: 6.406 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.783e-05/0.8294, allocations: 4.094 kB / 1.127 GB, free: 6.402 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003927/0.8298, allocations: 95.88 kB / 1.127 GB, free: 6.309 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.034e-05/0.8298, allocations: 5.688 kB / 1.127 GB, free: 6.305 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005313/0.8303, allocations: 127.6 kB / 1.127 GB, free: 6.18 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.602e-05/0.8304, allocations: 28 kB / 1.127 GB, free: 6.152 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 7.273e-06/0.8304, allocations: 4 kB / 1.127 GB, free: 6.148 MB / 0.7292 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008607/0.8313, allocations: 425.3 kB / 1.127 GB, free: 5.73 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.429e-06/0.8313, allocations: 3.938 kB / 1.127 GB, free: 5.727 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.086e-06/0.8313, allocations: 4 kB / 1.127 GB, free: 5.723 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003036/0.8316, allocations: 84 kB / 1.127 GB, free: 5.641 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.8316, allocations: 4 kB / 1.127 GB, free: 5.637 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004706/0.8321, allocations: 107.7 kB / 1.128 GB, free: 5.531 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.761e-05/0.8322, allocations: 20 kB / 1.128 GB, free: 5.512 MB / 0.7292 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition6,$whenCondition5,$PRE.booPul.y,booPul.y,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,$PRE.pulse.booPul.y,pulse.booPul.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (55): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001226/0.8323, allocations: 128.7 kB / 1.128 GB, free: 5.379 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.656e-05/0.8324, allocations: 51.44 kB / 1.128 GB, free: 5.328 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.615e-05/0.8325, allocations: 44.69 kB / 1.128 GB, free: 5.281 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.66e-06/0.8325, allocations: 4 kB / 1.128 GB, free: 5.277 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.8325, allocations: 4 kB / 1.128 GB, free: 5.273 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.8325, allocations: 3.984 kB / 1.128 GB, free: 5.27 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000959/0.8335, allocations: 0.8642 MB / 1.129 GB, free: 4.359 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.868e-06/0.8335, allocations: 5.016 kB / 1.129 GB, free: 4.355 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004131/0.8339, allocations: 87.84 kB / 1.129 GB, free: 4.27 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.542e-06/0.8339, allocations: 4 kB / 1.129 GB, free: 4.266 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.131e-05/0.8339, allocations: 3.984 kB / 1.129 GB, free: 4.262 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.458e-06/0.8339, allocations: 6.188 kB / 1.129 GB, free: 4.258 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.834, allocations: 0 / 1.129 GB, free: 4.258 MB / 0.7292 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007756/0.8347, allocations: 0.6227 MB / 1.129 GB, free: 3.613 MB / 0.7292 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001067/0.8358, allocations: 1.181 MB / 1.131 GB, free: 2.414 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 7.232e-05/0.8359, allocations: 120.5 kB / 1.131 GB, free: 2.277 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.806e-05/0.836, allocations: 7.906 kB / 1.131 GB, free: 2.27 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002314/0.8362, allocations: 27.97 kB / 1.131 GB, free: 2.242 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.137e-05/0.8363, allocations: 25.25 kB / 1.131 GB, free: 2.219 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.727e-05/0.8363, allocations: 15.98 kB / 1.131 GB, free: 2.203 MB / 0.7292 GB Notification: Performance of sort global known variables: time 0.0001979/0.8365, allocations: 224.6 kB / 1.131 GB, free: 1.984 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.001743/0.8382, allocations: 203.1 kB / 1.131 GB, free: 1.785 MB / 0.7292 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (pidSca.I.y,pidSca.D.x,pla1.y,pidNoSca.I.y,pidNoSca.D.x,pla2.y) * Number of discrete variables: 8 ($whenCondition6,$whenCondition5,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,pulse.booPul.y,booPul.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (47): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001821/0.8384, allocations: 131.1 kB / 1.131 GB, free: 1.648 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.001042/0.8395, allocations: 0.7362 MB / 1.132 GB, free: 0.8906 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.8395, allocations: 0 / 1.132 GB, free: 0.8906 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0002341/0.8397, allocations: 178.6 kB / 1.132 GB, free: 0.7148 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004935/0.8402, allocations: 81.73 kB / 1.132 GB, free: 0.6406 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001287/0.8415, allocations: 0.6863 MB / 1.133 GB, free: 15.93 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005493/0.8421, allocations: 0.9303 MB / 1.134 GB, free: 14.97 MB / 0.7448 GB Notification: Performance of SimCode: time 2.8e-07/0.8421, allocations: 0 / 1.134 GB, free: 14.97 MB / 0.7448 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Continuous_Validation_PIDWithResetScale_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Continuous_Validation_PIDWithResetScale.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe 2>&1)