Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.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.PIDScale,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_PIDScale",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 1.817/1.817, allocations: 387.2 MB / 394.5 MB, free: 13.7 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.0009493/0.0009492, allocations: 173.3 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.154/1.154, allocations: 221.3 MB / 0.7819 GB, free: 1.48 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.0008885/0.0008886, allocations: 90.64 kB / 0.9213 GB, free: 2.723 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.4249/0.4258, allocations: 148.5 MB / 1.066 GB, free: 168.1 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.217/0.6429, allocations: 142.3 MB / 1.205 GB, free: 26.01 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6232/1.266, allocations: 150.4 MB / 1.352 GB, free: 15.91 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001767/1.266, allocations: 78.78 kB / 1.352 GB, free: 15.91 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: 124 * Number of variables: 124 Notification: Performance of Generate backend data structure: time 0.02531/1.292, allocations: 9.907 MB / 1.362 GB, free: 13.95 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.014e-05/1.292, allocations: 13 kB / 1.362 GB, free: 13.93 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000102/1.292, allocations: 74.97 kB / 1.362 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004194/1.292, allocations: 389.4 kB / 1.362 GB, free: 13.51 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.058e-05/1.292, allocations: 16 kB / 1.362 GB, free: 13.49 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.208e-05/1.292, allocations: 32 kB / 1.362 GB, free: 13.46 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004185/1.293, allocations: 282 kB / 1.363 GB, free: 13.29 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004956/1.293, allocations: 393 kB / 1.363 GB, free: 13 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.335e-05/1.293, allocations: 3.984 kB / 1.363 GB, free: 12.99 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.069e-05/1.293, allocations: 2.688 kB / 1.363 GB, free: 12.99 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/1.293, allocations: 16 kB / 1.363 GB, free: 12.98 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001526/1.295, allocations: 1.465 MB / 1.365 GB, free: 11.81 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002417/1.295, allocations: 211.4 kB / 1.365 GB, free: 11.67 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000374/1.296, allocations: 271.7 kB / 1.365 GB, free: 11.49 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 3.323e-05/1.296, allocations: 4 kB / 1.365 GB, free: 11.48 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002369/1.296, allocations: 215.6 kB / 1.365 GB, free: 11.32 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=49): time 1.613e-06/1.296, allocations: 4 kB / 1.365 GB, free: 11.32 MB / 0.8073 GB Notification: Performance of matching and sorting (n=49): time 0.0004615/1.296, allocations: 337.5 kB / 1.366 GB, free: 11.07 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.993e-05/1.296, allocations: 111.2 kB / 1.366 GB, free: 10.93 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002178/1.297, allocations: 279.7 kB / 1.366 GB, free: 10.71 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 3.415e-05/1.297, allocations: 25.7 kB / 1.366 GB, free: 10.68 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 7.409e-05/1.297, allocations: 205.9 kB / 1.366 GB, free: 10.5 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 7.191e-05/1.297, allocations: 161.6 kB / 1.366 GB, free: 10.36 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.434e-05/1.297, allocations: 11.88 kB / 1.366 GB, free: 10.35 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 5.631e-05/1.297, allocations: 354.2 kB / 1.367 GB, free: 10.02 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002065/1.297, allocations: 144.5 kB / 1.367 GB, free: 9.934 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002275/1.297, allocations: 232.2 kB / 1.367 GB, free: 9.75 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003365/1.298, allocations: 173.7 kB / 1.367 GB, free: 9.645 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/1.298, allocations: 0 / 1.367 GB, free: 9.645 MB / 0.8073 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0006585/1.298, allocations: 459 kB / 1.368 GB, free: 9.312 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 8.894e-05/1.298, allocations: 0.5316 MB / 1.368 GB, free: 8.746 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/1.298, allocations: 4 kB / 1.368 GB, free: 8.742 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.271e-05/1.298, allocations: 4 kB / 1.368 GB, free: 8.738 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004011/1.299, allocations: 98.69 kB / 1.368 GB, free: 8.645 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/1.299, allocations: 8 kB / 1.368 GB, free: 8.637 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003693/1.299, allocations: 90.81 kB / 1.368 GB, free: 8.551 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.782e-05/1.299, allocations: 19.38 kB / 1.368 GB, free: 8.535 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 4.959e-06/1.299, allocations: 8 kB / 1.368 GB, free: 8.527 MB / 0.8073 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005967/1.3, allocations: 379.7 kB / 1.369 GB, free: 8.273 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.905e-06/1.3, allocations: 4 kB / 1.369 GB, free: 8.27 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.717e-06/1.3, allocations: 0 / 1.369 GB, free: 8.27 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003188/1.3, allocations: 83.09 kB / 1.369 GB, free: 8.191 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.176e-06/1.3, allocations: 4 kB / 1.369 GB, free: 8.188 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003201/1.301, allocations: 75.8 kB / 1.369 GB, free: 8.113 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.249e-05/1.301, allocations: 22.17 kB / 1.369 GB, free: 8.098 MB / 0.8073 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 8.92e-05/1.301, allocations: 120.8 kB / 1.369 GB, free: 7.973 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.386e-05/1.301, allocations: 39.53 kB / 1.369 GB, free: 7.934 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004856/1.301, allocations: 364.6 kB / 1.369 GB, free: 7.68 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.988e-06/1.301, allocations: 4 kB / 1.369 GB, free: 7.676 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.626e-06/1.301, allocations: 4 kB / 1.369 GB, free: 7.672 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.583e-06/1.301, allocations: 7.891 kB / 1.369 GB, free: 7.664 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001011/1.302, allocations: 1.004 MB / 1.37 GB, free: 6.859 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/1.302, allocations: 4 kB / 1.37 GB, free: 6.855 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003678/1.303, allocations: 87.33 kB / 1.371 GB, free: 6.773 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.992e-06/1.303, allocations: 4 kB / 1.371 GB, free: 6.77 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.593e-05/1.303, allocations: 12.11 kB / 1.371 GB, free: 6.758 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/1.303, allocations: 11.94 kB / 1.371 GB, free: 6.746 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/1.303, allocations: 0 / 1.371 GB, free: 6.746 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006709/1.303, allocations: 0.7299 MB / 1.371 GB, free: 6.125 MB / 0.8073 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008881/1.304, allocations: 1.277 MB / 1.372 GB, free: 5.039 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 5.856e-05/1.304, allocations: 123.8 kB / 1.373 GB, free: 4.902 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.181e-05/1.304, allocations: 4 kB / 1.373 GB, free: 4.898 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002299/1.305, allocations: 27.17 kB / 1.373 GB, free: 4.875 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.092e-05/1.305, allocations: 30.83 kB / 1.373 GB, free: 4.848 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.454e-05/1.305, allocations: 19.38 kB / 1.373 GB, free: 4.832 MB / 0.8073 GB Notification: Performance of sort global known variables: time 0.0001558/1.305, allocations: 213.2 kB / 1.373 GB, free: 4.668 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.001588/1.307, allocations: 194.9 kB / 1.373 GB, free: 4.48 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: 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.0001595/1.307, allocations: 131.2 kB / 1.373 GB, free: 4.348 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0007555/1.307, allocations: 0.6425 MB / 1.374 GB, free: 3.902 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/1.307, allocations: 4 kB / 1.374 GB, free: 3.898 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.0001886/1.308, allocations: 178.8 kB / 1.374 GB, free: 3.777 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004592/1.308, allocations: 70.53 kB / 1.374 GB, free: 3.723 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001017/1.309, allocations: 0.7173 MB / 1.375 GB, free: 3.051 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004635/1.31, allocations: 0.9186 MB / 1.376 GB, free: 18.11 MB / 0.823 GB Notification: Performance of SimCode: time 2.6e-07/1.31, allocations: 0 / 1.376 GB, free: 18.11 MB / 0.823 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_PIDScale_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_PIDScale.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.pipe 2>&1)