Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_PIDWithResetScale",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 1.808/1.808, allocations: 387.2 MB / 394.5 MB, free: 13.73 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009672/0.0009672, allocations: 184.2 kB / 487 MB, free: 5.406 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.166/1.166, allocations: 221.3 MB / 0.7819 GB, free: 1.391 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008255/0.0008254, allocations: 102.4 kB / 0.9213 GB, free: 2.648 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.4182/0.419, allocations: 148.5 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1863/0.6053, allocations: 142.3 MB / 1.205 GB, free: 26.16 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5244/1.13, allocations: 150.5 MB / 1.352 GB, free: 15.86 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000245/1.13, allocations: 76.23 kB / 1.352 GB, free: 15.86 MB / 0.8073 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.02832/1.158, allocations: 11.28 MB / 1.363 GB, free: 13.01 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.096e-05/1.158, allocations: 15.98 kB / 1.363 GB, free: 13 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001105/1.159, allocations: 75.09 kB / 1.363 GB, free: 12.92 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004374/1.159, allocations: 409.1 kB / 1.364 GB, free: 12.55 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.997e-05/1.159, allocations: 16 kB / 1.364 GB, free: 12.54 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.538e-05/1.159, allocations: 43.75 kB / 1.364 GB, free: 12.5 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004456/1.16, allocations: 289.5 kB / 1.364 GB, free: 12.32 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005242/1.16, allocations: 425.1 kB / 1.365 GB, free: 12.01 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.289e-05/1.16, allocations: 0 / 1.365 GB, free: 12.01 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.196e-05/1.16, allocations: 4 kB / 1.365 GB, free: 12 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.045e-05/1.16, allocations: 15.91 kB / 1.365 GB, free: 11.99 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001637/1.162, allocations: 1.565 MB / 1.366 GB, free: 10.75 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002718/1.162, allocations: 231.7 kB / 1.366 GB, free: 10.59 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003931/1.162, allocations: 282.5 kB / 1.367 GB, free: 10.39 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 3.504e-05/1.163, allocations: 7.953 kB / 1.367 GB, free: 10.39 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002699/1.163, allocations: 232.4 kB / 1.367 GB, free: 10.21 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=53): time 1.673e-06/1.163, allocations: 0 / 1.367 GB, free: 10.21 MB / 0.8073 GB Notification: Performance of matching and sorting (n=53): time 0.0005197/1.163, allocations: 366.2 kB / 1.367 GB, free: 9.945 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.417e-05/1.163, allocations: 111.2 kB / 1.367 GB, free: 9.809 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002496/1.164, allocations: 289.4 kB / 1.368 GB, free: 9.582 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 4.677e-05/1.164, allocations: 29.7 kB / 1.368 GB, free: 9.547 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 9.48e-05/1.164, allocations: 220.1 kB / 1.368 GB, free: 9.352 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 8.448e-05/1.164, allocations: 170.3 kB / 1.368 GB, free: 9.207 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.275e-05/1.164, allocations: 4 kB / 1.368 GB, free: 9.203 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 6.708e-05/1.164, allocations: 354.6 kB / 1.368 GB, free: 8.867 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002698/1.164, allocations: 170.7 kB / 1.368 GB, free: 8.773 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002849/1.165, allocations: 273.3 kB / 1.369 GB, free: 8.555 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004721/1.165, allocations: 209.8 kB / 1.369 GB, free: 8.426 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/1.165, allocations: 4 kB / 1.369 GB, free: 8.422 MB / 0.8073 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0008978/1.166, allocations: 0.5381 MB / 1.369 GB, free: 8.02 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 0.000102/1.166, allocations: 0.6195 MB / 1.37 GB, free: 7.363 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/1.166, allocations: 0 / 1.37 GB, free: 7.363 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/1.166, allocations: 4 kB / 1.37 GB, free: 7.359 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000417/1.166, allocations: 103.4 kB / 1.37 GB, free: 7.262 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/1.167, allocations: 7.938 kB / 1.37 GB, free: 7.254 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005187/1.167, allocations: 127.6 kB / 1.37 GB, free: 7.129 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.122e-05/1.167, allocations: 30.73 kB / 1.37 GB, free: 7.105 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 4.579e-06/1.167, allocations: 0 / 1.37 GB, free: 7.105 MB / 0.8073 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007871/1.168, allocations: 469.1 kB / 1.371 GB, free: 6.777 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.306e-06/1.168, allocations: 4 kB / 1.371 GB, free: 6.773 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.939e-06/1.168, allocations: 4 kB / 1.371 GB, free: 6.77 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003252/1.168, allocations: 95.23 kB / 1.371 GB, free: 6.68 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.316e-06/1.168, allocations: 4 kB / 1.371 GB, free: 6.676 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000461/1.169, allocations: 115.8 kB / 1.371 GB, free: 6.562 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.131e-05/1.169, allocations: 23.92 kB / 1.371 GB, free: 6.543 MB / 0.8073 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 (61): * Single equations (assignments): 59 * 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.0001039/1.169, allocations: 123 kB / 1.371 GB, free: 6.422 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.841e-05/1.169, allocations: 43.44 kB / 1.371 GB, free: 6.379 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005232/1.169, allocations: 391.1 kB / 1.372 GB, free: 6.109 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/1.169, allocations: 8 kB / 1.372 GB, free: 6.102 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.838e-06/1.169, allocations: 0 / 1.372 GB, free: 6.102 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/1.17, allocations: 3.984 kB / 1.372 GB, free: 6.098 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001117/1.171, allocations: 1.05 MB / 1.373 GB, free: 5.254 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/1.171, allocations: 3.984 kB / 1.373 GB, free: 5.25 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003888/1.171, allocations: 91.14 kB / 1.373 GB, free: 5.164 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/1.171, allocations: 4 kB / 1.373 GB, free: 5.16 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.698e-05/1.171, allocations: 7.375 kB / 1.373 GB, free: 5.156 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.037e-06/1.171, allocations: 8.125 kB / 1.373 GB, free: 5.148 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/1.171, allocations: 11.94 kB / 1.373 GB, free: 5.137 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000678/1.172, allocations: 0.7674 MB / 1.373 GB, free: 4.492 MB / 0.8073 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008857/1.173, allocations: 1.333 MB / 1.375 GB, free: 3.375 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 5.629e-05/1.173, allocations: 132 kB / 1.375 GB, free: 3.23 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.511e-05/1.173, allocations: 4 kB / 1.375 GB, free: 3.227 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002363/1.173, allocations: 23.98 kB / 1.375 GB, free: 3.203 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.041e-05/1.173, allocations: 27.89 kB / 1.375 GB, free: 3.18 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.482e-05/1.173, allocations: 19.61 kB / 1.375 GB, free: 3.164 MB / 0.8073 GB Notification: Performance of sort global known variables: time 0.0001661/1.173, allocations: 221.6 kB / 1.375 GB, free: 3 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.001723/1.175, allocations: 217.9 kB / 1.375 GB, free: 2.793 MB / 0.8073 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: 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 (53): * Single equations (assignments): 51 * 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.0001704/1.175, allocations: 131.8 kB / 1.376 GB, free: 2.656 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0008819/1.176, allocations: 0.7933 MB / 1.376 GB, free: 2.082 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/1.176, allocations: 0 / 1.376 GB, free: 2.082 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.0002009/1.176, allocations: 193.1 kB / 1.376 GB, free: 1.949 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004804/1.177, allocations: 83.62 kB / 1.377 GB, free: 1.883 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001127/1.178, allocations: 0.7453 MB / 1.377 GB, free: 1.195 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004261/1.178, allocations: 0.9287 MB / 1.378 GB, free: 16.24 MB / 0.823 GB Notification: Performance of SimCode: time 2.4e-07/1.178, allocations: 0 / 1.378 GB, free: 16.24 MB / 0.823 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_PIDWithResetScale_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_PIDWithResetScale.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe 2>&1)