Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.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.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond,fileNamePrefix="Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_TrimAndRespond",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond,fileNamePrefix="Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_TrimAndRespond",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.826/1.826, allocations: 387.2 MB / 394.5 MB, free: 13.64 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.001006/0.001006, allocations: 173.3 kB / 487 MB, free: 5.316 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.149/1.149, allocations: 221.3 MB / 0.7819 GB, free: 1.32 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.0008974/0.0008973, allocations: 107.7 kB / 0.9213 GB, free: 2.57 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.4312/0.4322, allocations: 148.5 MB / 1.066 GB, free: 168.1 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1782/0.6103, allocations: 142.3 MB / 1.205 GB, free: 26.09 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4878/1.098, allocations: 152 MB / 1.354 GB, free: 16.11 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001927/1.098, allocations: 90.75 kB / 1.354 GB, free: 16.11 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.02174/1.12, allocations: 8.433 MB / 1.362 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.279e-05/1.12, allocations: 12.56 kB / 1.362 GB, free: 14.03 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.656e-05/1.12, allocations: 59.64 kB / 1.362 GB, free: 13.97 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004794/1.121, allocations: 394.5 kB / 1.362 GB, free: 13.63 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.567e-05/1.121, allocations: 14.25 kB / 1.363 GB, free: 13.62 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.289e-05/1.121, allocations: 29.48 kB / 1.363 GB, free: 13.59 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005706/1.121, allocations: 431.5 kB / 1.363 GB, free: 13.36 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005929/1.122, allocations: 0.5398 MB / 1.363 GB, free: 12.91 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.094e-05/1.122, allocations: 3.938 kB / 1.363 GB, free: 12.9 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.146e-05/1.122, allocations: 0 / 1.363 GB, free: 12.9 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.596e-06/1.122, allocations: 8 kB / 1.363 GB, free: 12.89 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001747/1.124, allocations: 1.574 MB / 1.365 GB, free: 11.49 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000677/1.125, allocations: 0.652 MB / 1.366 GB, free: 10.92 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002588/1.125, allocations: 272.1 kB / 1.366 GB, free: 10.7 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 3.526e-05/1.125, allocations: 11.67 kB / 1.366 GB, free: 10.7 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003984/1.125, allocations: 433.6 kB / 1.366 GB, free: 10.33 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=51): time 1.593e-06/1.125, allocations: 0 / 1.366 GB, free: 10.33 MB / 0.8073 GB Notification: Performance of matching and sorting (n=51): time 0.0006654/1.126, allocations: 0.5444 MB / 1.367 GB, free: 9.891 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.672e-05/1.126, allocations: 280.5 kB / 1.367 GB, free: 9.559 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002296/1.126, allocations: 321.5 kB / 1.367 GB, free: 9.297 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 4.259e-05/1.126, allocations: 37.64 kB / 1.367 GB, free: 9.258 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 5.853e-05/1.126, allocations: 163.3 kB / 1.368 GB, free: 9.105 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 7.289e-05/1.126, allocations: 119.9 kB / 1.368 GB, free: 9.008 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.343e-05/1.126, allocations: 3.938 kB / 1.368 GB, free: 9.008 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 6.067e-05/1.127, allocations: 356.1 kB / 1.368 GB, free: 8.668 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002255/1.127, allocations: 212.1 kB / 1.368 GB, free: 8.52 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002815/1.127, allocations: 396.9 kB / 1.369 GB, free: 8.141 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002457/1.127, allocations: 248.9 kB / 1.369 GB, free: 7.957 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/1.127, allocations: 0 / 1.369 GB, free: 7.957 MB / 0.8073 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0006537/1.128, allocations: 0.5728 MB / 1.369 GB, free: 7.488 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002305/1.128, allocations: 1.819 MB / 1.371 GB, free: 5.559 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.193e-06/1.128, allocations: 4 kB / 1.371 GB, free: 5.555 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.467e-05/1.128, allocations: 8 kB / 1.371 GB, free: 5.547 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003601/1.129, allocations: 111.6 kB / 1.371 GB, free: 5.441 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.917e-06/1.129, allocations: 15.84 kB / 1.371 GB, free: 5.426 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000384/1.129, allocations: 87.77 kB / 1.371 GB, free: 5.34 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.36e-05/1.129, allocations: 19.81 kB / 1.371 GB, free: 5.324 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 4.238e-06/1.129, allocations: 4 kB / 1.371 GB, free: 5.32 MB / 0.8073 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005105/1.13, allocations: 477.7 kB / 1.372 GB, free: 4.961 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/1.13, allocations: 4 kB / 1.372 GB, free: 4.957 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.592e-06/1.13, allocations: 8 kB / 1.372 GB, free: 4.949 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002437/1.13, allocations: 75.27 kB / 1.372 GB, free: 4.879 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.161e-06/1.13, allocations: 11.94 kB / 1.372 GB, free: 4.867 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002958/1.13, allocations: 55.8 kB / 1.372 GB, free: 4.812 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.746e-05/1.13, allocations: 18.75 kB / 1.372 GB, free: 4.797 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 53 ($PRE.triAndRes[1].uniDel1.firstTrigger,triAndRes[1].uniDel1.firstTrigger,$PRE.triAndRes[1].sam.firstTrigger,triAndRes[1].sam.firstTrigger,$whenCondition9,triAndRes[1].sam.sampleTrigger,$whenCondition10,triAndRes[1].uniDel1.sampleTrigger,$PRE.triAndRes[1].firstTrigger,triAndRes[1].firstTrigger,$whenCondition7,triAndRes[1].sampleTrigger,$PRE.triAndRes[2].uniDel1.firstTrigger,triAndRes[2].uniDel1.firstTrigger,$PRE.triAndRes[2].sam.firstTrigger,triAndRes[2].sam.firstTrigger,$whenCondition5,triAndRes[2].sam.sampleTrigger,$whenCondition6,triAndRes[2].uniDel1.sampleTrigger,triAndRes[2].incY.y,triAndRes[2].sam.y,$PRE.triAndRes[2].uniDel1.y,triAndRes[2].uniDel1.y,$PRE.triAndRes[2].firstTrigger,triAndRes[2].firstTrigger,$whenCondition4,triAndRes[2].sampleTrigger,$PRE.triAndRes[3].uniDel1.firstTrigger,triAndRes[3].uniDel1.firstTrigger,$PRE.triAndRes[3].sam.firstTrigger,triAndRes[3].sam.firstTrigger,$whenCondition2,triAndRes[3].sam.sampleTrigger,$whenCondition3,triAndRes[3].uniDel1.sampleTrigger,triAndRes[3].incY.y,triAndRes[3].sam.y,$PRE.triAndRes[3].uniDel1.y,triAndRes[3].uniDel1.y,$PRE.triAndRes[3].firstTrigger,triAndRes[3].firstTrigger,$whenCondition1,triAndRes[3].sampleTrigger,$whenCondition8,$PRE.act1.T_start,act1.T_start,$PRE.act1.count,act1.count,triAndRes[1].incY.y,triAndRes[1].sam.y,$PRE.triAndRes[1].uniDel1.y,triAndRes[1].uniDel1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 64 * 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.0001311/1.13, allocations: 163.9 kB / 1.372 GB, free: 4.637 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.169e-05/1.13, allocations: 43.52 kB / 1.372 GB, free: 4.594 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.363e-05/1.131, allocations: 55.95 kB / 1.372 GB, free: 4.559 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/1.131, allocations: 4 kB / 1.372 GB, free: 4.555 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/1.131, allocations: 4 kB / 1.372 GB, free: 4.551 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/1.131, allocations: 3.984 kB / 1.372 GB, free: 4.547 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00135/1.132, allocations: 1.593 MB / 1.374 GB, free: 3.16 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/1.132, allocations: 3.938 kB / 1.374 GB, free: 3.156 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002873/1.132, allocations: 83.67 kB / 1.374 GB, free: 3.078 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.19e-06/1.132, allocations: 11.94 kB / 1.374 GB, free: 3.066 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.149e-05/1.132, allocations: 4 kB / 1.374 GB, free: 3.062 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.027e-06/1.132, allocations: 8.219 kB / 1.374 GB, free: 3.055 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/1.132, allocations: 3.984 kB / 1.374 GB, free: 3.051 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006283/1.133, allocations: 1.049 MB / 1.375 GB, free: 2.066 MB / 0.8073 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006536/1.134, allocations: 1.434 MB / 1.376 GB, free: 0.7031 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 5.222e-05/1.134, allocations: 120.5 kB / 1.377 GB, free: 0.5664 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.025e-05/1.134, allocations: 15.8 kB / 1.377 GB, free: 0.5547 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006444/1.134, allocations: 103.9 kB / 1.377 GB, free: 464 kB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.21e-05/1.134, allocations: 54.23 kB / 1.377 GB, free: 420 kB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.346e-05/1.135, allocations: 19.73 kB / 1.377 GB, free: 404 kB / 0.8073 GB Notification: Performance of sort global known variables: time 0.0001591/1.135, allocations: 246.7 kB / 1.377 GB, free: 208 kB / 0.8073 GB Notification: Performance of remove unused functions: time 0.001774/1.136, allocations: 167.4 kB / 1.377 GB, free: 40 kB / 0.8073 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 39 (triAndRes[3].sampleTrigger,$whenCondition1,triAndRes[3].firstTrigger,triAndRes[3].uniDel1.sampleTrigger,triAndRes[3].sam.sampleTrigger,$whenCondition3,$whenCondition2,triAndRes[3].incY.y,triAndRes[3].sam.firstTrigger,triAndRes[3].sam.y,triAndRes[3].uniDel1.firstTrigger,triAndRes[3].uniDel1.y,triAndRes[2].sampleTrigger,$whenCondition4,triAndRes[2].firstTrigger,triAndRes[2].uniDel1.sampleTrigger,triAndRes[2].sam.sampleTrigger,$whenCondition6,$whenCondition5,triAndRes[2].incY.y,triAndRes[2].sam.firstTrigger,triAndRes[2].sam.y,triAndRes[2].uniDel1.firstTrigger,triAndRes[2].uniDel1.y,triAndRes[1].sampleTrigger,$whenCondition7,triAndRes[1].firstTrigger,triAndRes[1].uniDel1.sampleTrigger,triAndRes[1].sam.sampleTrigger,$whenCondition10,$whenCondition9,$whenCondition8,act1.T_start,act1.count,triAndRes[1].incY.y,triAndRes[1].sam.firstTrigger,triAndRes[1].sam.y,triAndRes[1].uniDel1.firstTrigger,triAndRes[1].uniDel1.y) * Number of discrete states: 4 (act1.count,triAndRes[1].uniDel1.u,triAndRes[2].uniDel1.u,triAndRes[3].uniDel1.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (51): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 17 * 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.0002187/1.137, allocations: 146.2 kB / 1.377 GB, free: 15.89 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.001014/1.138, allocations: 0.8578 MB / 1.378 GB, free: 15.21 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/1.138, allocations: 0 / 1.378 GB, free: 15.21 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.0003719/1.138, allocations: 291.7 kB / 1.378 GB, free: 14.99 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006022/1.139, allocations: 74.75 kB / 1.378 GB, free: 14.93 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001333/1.14, allocations: 0.7864 MB / 1.379 GB, free: 14.21 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005824/1.141, allocations: 0.9665 MB / 1.38 GB, free: 13.25 MB / 0.823 GB Notification: Performance of SimCode: time 2.81e-07/1.141, allocations: 0 / 1.38 GB, free: 13.25 MB / 0.823 GB (rm -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe ; mkfifo Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe >> ../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond_res.mat --tempDir=temp_Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_TrimAndRespond_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_TrimAndRespond.fmu > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond_res.mat does not exist to compare? outputFormat=mat