Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.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.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond,fileNamePrefix="Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_TrimAndRespond",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 1.811/1.811, allocations: 390.4 MB / 397.7 MB, free: 11.24 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.0009792/0.0009792, allocations: 182.6 kB / 490.8 MB, free: 1.926 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.119/1.119, allocations: 221.4 MB / 0.7863 GB, free: 13.69 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008228/0.0008228, allocations: 97 kB / 0.9264 GB, free: 14.22 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.4063/0.4071, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1765/0.5837, allocations: 143 MB / 1.212 GB, free: 40 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4893/1.073, allocations: 152.8 MB / 1.361 GB, free: 17.18 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002079/1.073, allocations: 91.97 kB / 1.361 GB, free: 17.18 MB / 0.823 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.02079/1.094, allocations: 8.441 MB / 1.369 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.149e-05/1.094, allocations: 9.062 kB / 1.369 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.917e-05/1.094, allocations: 59.47 kB / 1.369 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004733/1.095, allocations: 389.6 kB / 1.37 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.569e-05/1.095, allocations: 19.5 kB / 1.37 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.609e-05/1.095, allocations: 23.02 kB / 1.37 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006099/1.095, allocations: 429.7 kB / 1.37 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007062/1.096, allocations: 0.5382 MB / 1.371 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.162e-05/1.096, allocations: 1.469 kB / 1.371 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.142e-05/1.096, allocations: 6.547 kB / 1.371 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.858e-06/1.096, allocations: 9.625 kB / 1.371 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002099/1.098, allocations: 1.573 MB / 1.372 GB, free: 30.9 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008233/1.099, allocations: 0.6439 MB / 1.373 GB, free: 30.75 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000318/1.099, allocations: 276.6 kB / 1.373 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.69e-05/1.099, allocations: 11.62 kB / 1.373 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004802/1.1, allocations: 432 kB / 1.373 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=51): time 2.485e-06/1.1, allocations: 0 / 1.373 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of matching and sorting (n=51): time 0.000803/1.101, allocations: 0.5421 MB / 1.374 GB, free: 30.51 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.018e-05/1.101, allocations: 282.5 kB / 1.374 GB, free: 30.2 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002956/1.101, allocations: 319 kB / 1.375 GB, free: 30.09 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.899e-05/1.101, allocations: 40.8 kB / 1.375 GB, free: 30.06 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 9.022e-05/1.101, allocations: 169 kB / 1.375 GB, free: 29.94 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 8.228e-05/1.101, allocations: 119.8 kB / 1.375 GB, free: 29.88 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.413e-05/1.101, allocations: 0 / 1.375 GB, free: 29.88 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001258/1.102, allocations: 358.9 kB / 1.375 GB, free: 29.56 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002919/1.102, allocations: 206.7 kB / 1.375 GB, free: 29.56 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003449/1.102, allocations: 391.5 kB / 1.376 GB, free: 29.36 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003141/1.103, allocations: 244.7 kB / 1.376 GB, free: 29.34 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/1.103, allocations: 1.75 kB / 1.376 GB, free: 29.34 MB / 0.8386 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0007536/1.103, allocations: 0.5737 MB / 1.377 GB, free: 29.26 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005648/1.104, allocations: 1.828 MB / 1.378 GB, free: 27.35 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.408e-06/1.104, allocations: 9.109 kB / 1.378 GB, free: 27.34 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.579e-05/1.104, allocations: 8.719 kB / 1.378 GB, free: 27.34 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003871/1.104, allocations: 109.8 kB / 1.379 GB, free: 27.33 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.928e-06/1.104, allocations: 15.94 kB / 1.379 GB, free: 27.32 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004255/1.105, allocations: 86.81 kB / 1.379 GB, free: 27.3 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.198e-05/1.105, allocations: 22.89 kB / 1.379 GB, free: 27.3 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 6.181e-06/1.105, allocations: 4.312 kB / 1.379 GB, free: 27.3 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006459/1.105, allocations: 469.7 kB / 1.379 GB, free: 27.27 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/1.105, allocations: 3.906 kB / 1.379 GB, free: 27.27 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.426e-06/1.106, allocations: 8.406 kB / 1.379 GB, free: 27.27 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002799/1.106, allocations: 78.31 kB / 1.379 GB, free: 27.26 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/1.106, allocations: 8.078 kB / 1.379 GB, free: 27.26 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003269/1.106, allocations: 56.42 kB / 1.379 GB, free: 27.25 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.34e-05/1.106, allocations: 21.47 kB / 1.379 GB, free: 27.25 MB / 0.8386 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.0001635/1.106, allocations: 165.9 kB / 1.379 GB, free: 27.11 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.326e-05/1.106, allocations: 47.02 kB / 1.379 GB, free: 27.09 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.173e-05/1.107, allocations: 52.56 kB / 1.379 GB, free: 27.08 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.015e-06/1.107, allocations: 5.812 kB / 1.38 GB, free: 27.08 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.017e-06/1.107, allocations: 1.969 kB / 1.38 GB, free: 27.08 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.656e-06/1.107, allocations: 4.953 kB / 1.38 GB, free: 27.08 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001835/1.108, allocations: 1.591 MB / 1.381 GB, free: 26.4 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/1.108, allocations: 1.953 kB / 1.381 GB, free: 26.4 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003181/1.109, allocations: 85.81 kB / 1.381 GB, free: 26.39 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.109e-06/1.109, allocations: 3.438 kB / 1.381 GB, free: 26.39 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.76e-05/1.109, allocations: 9.422 kB / 1.381 GB, free: 26.39 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.579e-06/1.109, allocations: 6.281 kB / 1.381 GB, free: 26.39 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/1.109, allocations: 10.83 kB / 1.381 GB, free: 26.38 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009416/1.11, allocations: 1.048 MB / 1.382 GB, free: 25.77 MB / 0.8386 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009773/1.111, allocations: 1.433 MB / 1.384 GB, free: 24.77 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 6.569e-05/1.111, allocations: 124.4 kB / 1.384 GB, free: 24.65 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.042e-05/1.111, allocations: 12.77 kB / 1.384 GB, free: 24.65 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006984/1.112, allocations: 114 kB / 1.384 GB, free: 24.64 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001063/1.112, allocations: 47.25 kB / 1.384 GB, free: 24.64 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.281e-05/1.112, allocations: 18.11 kB / 1.384 GB, free: 24.64 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0002326/1.112, allocations: 248.3 kB / 1.384 GB, free: 24.56 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.001872/1.114, allocations: 168.2 kB / 1.384 GB, free: 24.53 MB / 0.8386 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.0001768/1.114, allocations: 149 kB / 1.384 GB, free: 24.43 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001151/1.115, allocations: 0.8467 MB / 1.385 GB, free: 24.33 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/1.115, allocations: 1.969 kB / 1.385 GB, free: 24.33 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0004138/1.116, allocations: 305.9 kB / 1.386 GB, free: 24.32 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006084/1.116, allocations: 72.22 kB / 1.386 GB, free: 24.3 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001397/1.118, allocations: 0.7833 MB / 1.386 GB, free: 24.07 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006186/1.118, allocations: 0.9592 MB / 1.387 GB, free: 23.36 MB / 0.8386 GB Notification: Performance of SimCode: time 2.8e-07/1.118, allocations: 0 / 1.387 GB, free: 23.36 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond_res.mat --tempDir=temp_Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_TrimAndRespond_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_TrimAndRespond.fmu > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond_res.mat does not exist to compare? outputFormat=mat