Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_PIDScale",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_PIDScale",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 10.0.0-master/package.mo): time 1.772/1.772, allocations: 390.4 MB / 397.7 MB, free: 10.67 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001024/0.001024, allocations: 180.2 kB / 490.8 MB, free: 11.2 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.128/1.128, allocations: 221.4 MB / 0.7863 GB, free: 13.57 MB / 0.5886 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009505/0.0009505, allocations: 106.8 kB / 0.9264 GB, free: 20.98 MB / 0.6042 GB Notification: Performance of FrontEnd - loaded program: time 0.289/0.29, allocations: 149.2 MB / 1.072 GB, free: 15.94 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4738/0.7638, allocations: 143 MB / 1.212 GB, free: 53.43 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1583/0.9222, allocations: 151.3 MB / 1.359 GB, free: 2.676 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002181/0.9225, allocations: 75.97 kB / 1.359 GB, free: 2.602 MB / 0.8542 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 124 * Number of variables: 124 Notification: Performance of Generate backend data structure: time 0.02512/0.9476, allocations: 9.914 MB / 1.369 GB, free: 8.625 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.552e-05/0.9476, allocations: 8 kB / 1.369 GB, free: 8.617 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001578/0.9478, allocations: 71.16 kB / 1.369 GB, free: 8.547 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005488/0.9484, allocations: 386.9 kB / 1.37 GB, free: 8.125 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.477e-05/0.9484, allocations: 20 kB / 1.37 GB, free: 8.105 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.14e-05/0.9485, allocations: 39.91 kB / 1.37 GB, free: 8.066 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005546/0.9491, allocations: 273.9 kB / 1.37 GB, free: 7.797 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005974/0.9497, allocations: 397.1 kB / 1.37 GB, free: 7.395 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.393e-05/0.9497, allocations: 4 kB / 1.37 GB, free: 7.391 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.229e-05/0.9497, allocations: 4 kB / 1.37 GB, free: 7.387 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.25e-05/0.9497, allocations: 12 kB / 1.37 GB, free: 7.375 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002005/0.9518, allocations: 1.463 MB / 1.372 GB, free: 5.867 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003214/0.9521, allocations: 210.1 kB / 1.372 GB, free: 5.656 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004479/0.9525, allocations: 264.6 kB / 1.372 GB, free: 5.395 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 4.057e-05/0.9526, allocations: 7.984 kB / 1.372 GB, free: 5.387 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003056/0.9529, allocations: 224 kB / 1.372 GB, free: 5.156 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=49): time 1.734e-06/0.9529, allocations: 0 / 1.372 GB, free: 5.156 MB / 0.8698 GB Notification: Performance of matching and sorting (n=49): time 0.000578/0.9535, allocations: 346.7 kB / 1.373 GB, free: 4.812 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.424e-05/0.9536, allocations: 107.2 kB / 1.373 GB, free: 4.684 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002831/0.9539, allocations: 271.6 kB / 1.373 GB, free: 4.418 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 4.048e-05/0.9539, allocations: 29.7 kB / 1.373 GB, free: 4.383 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001248/0.954, allocations: 208.8 kB / 1.373 GB, free: 4.176 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.000107/0.9541, allocations: 157.7 kB / 1.373 GB, free: 4.02 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.409e-05/0.9542, allocations: 0 / 1.373 GB, free: 4.02 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001587/0.9543, allocations: 354.7 kB / 1.374 GB, free: 3.664 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002403/0.9546, allocations: 149 kB / 1.374 GB, free: 3.52 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002942/0.9549, allocations: 228.9 kB / 1.374 GB, free: 3.27 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004068/0.9553, allocations: 176.7 kB / 1.374 GB, free: 3.094 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.9553, allocations: 0 / 1.374 GB, free: 3.094 MB / 0.8698 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0008081/0.9561, allocations: 462.6 kB / 1.375 GB, free: 2.637 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001759/0.9563, allocations: 0.5311 MB / 1.375 GB, free: 2.062 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.9563, allocations: 0 / 1.375 GB, free: 2.062 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.578e-05/0.9563, allocations: 7.906 kB / 1.375 GB, free: 2.055 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004389/0.9568, allocations: 107.8 kB / 1.375 GB, free: 1.949 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.135e-05/0.9568, allocations: 4 kB / 1.375 GB, free: 1.945 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004033/0.9572, allocations: 91.62 kB / 1.375 GB, free: 1.855 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.408e-05/0.9573, allocations: 19.98 kB / 1.376 GB, free: 1.836 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 7.915e-06/0.9573, allocations: 4 kB / 1.376 GB, free: 1.832 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006876/0.958, allocations: 381.4 kB / 1.376 GB, free: 1.461 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.487e-06/0.958, allocations: 0 / 1.376 GB, free: 1.461 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.141e-06/0.958, allocations: 4 kB / 1.376 GB, free: 1.457 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003411/0.9584, allocations: 76.06 kB / 1.376 GB, free: 1.383 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.198e-05/0.9584, allocations: 13.39 kB / 1.376 GB, free: 1.371 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003553/0.9587, allocations: 75.64 kB / 1.376 GB, free: 1.297 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.066e-05/0.9588, allocations: 20 kB / 1.376 GB, free: 1.277 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,$PRE.pulse.booPul.y,pulse.booPul.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (56): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 1 * 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.0001078/0.9589, allocations: 116.8 kB / 1.376 GB, free: 1.156 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.491e-05/0.959, allocations: 43.52 kB / 1.376 GB, free: 1.113 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005671/0.9595, allocations: 364 kB / 1.377 GB, free: 0.75 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.716e-06/0.9596, allocations: 12.02 kB / 1.377 GB, free: 0.7383 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.93e-06/0.9596, allocations: 0 / 1.377 GB, free: 0.7383 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.794e-06/0.9596, allocations: 0 / 1.377 GB, free: 0.7383 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001315/0.9609, allocations: 1.012 MB / 1.378 GB, free: 15.66 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.9609, allocations: 0 / 1.378 GB, free: 15.66 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004286/0.9614, allocations: 92.06 kB / 1.378 GB, free: 15.57 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.384e-06/0.9614, allocations: 8 kB / 1.378 GB, free: 15.57 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.992e-05/0.9614, allocations: 8 kB / 1.378 GB, free: 15.56 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.611e-06/0.9614, allocations: 7.938 kB / 1.378 GB, free: 15.55 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.9614, allocations: 4 kB / 1.378 GB, free: 15.55 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008253/0.9623, allocations: 0.7277 MB / 1.378 GB, free: 14.75 MB / 0.8855 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001096/0.9634, allocations: 1.29 MB / 1.38 GB, free: 13.38 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 7.44e-05/0.9635, allocations: 124.5 kB / 1.38 GB, free: 13.24 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.429e-05/0.9635, allocations: 8 kB / 1.38 GB, free: 13.23 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000252/0.9638, allocations: 27.97 kB / 1.38 GB, free: 13.2 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.652e-05/0.9638, allocations: 27.91 kB / 1.38 GB, free: 13.18 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.986e-05/0.9639, allocations: 15.98 kB / 1.38 GB, free: 13.16 MB / 0.8855 GB Notification: Performance of sort global known variables: time 0.0002242/0.9641, allocations: 211.1 kB / 1.38 GB, free: 12.95 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.001739/0.9658, allocations: 191 kB / 1.38 GB, free: 12.77 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (pidSca.I.y,pidSca.D.x,pla1.y,pidNoSca.I.y,pidNoSca.D.x,pla2.y) * Number of discrete variables: 6 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,pulse.booPul.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001789/0.966, allocations: 128.2 kB / 1.38 GB, free: 12.63 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0009059/0.9669, allocations: 0.6403 MB / 1.381 GB, free: 11.98 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.967, allocations: 0 / 1.381 GB, free: 11.98 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0002474/0.9672, allocations: 180.7 kB / 1.381 GB, free: 11.79 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004889/0.9677, allocations: 75.45 kB / 1.381 GB, free: 11.72 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001222/0.9689, allocations: 0.7201 MB / 1.382 GB, free: 10.96 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005025/0.9695, allocations: 0.9194 MB / 1.383 GB, free: 10.01 MB / 0.8855 GB Notification: Performance of SimCode: time 3.21e-07/0.9695, allocations: 0 / 1.383 GB, free: 10.01 MB / 0.8855 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_PIDScale_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_PIDScale.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.pipe 2>&1)