Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.ASHRAE.G36_PR1.TerminalUnits.Reheat.SetPoints.Validation.ActiveAirFlow.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.ASHRAE.G36_PR1.TerminalUnits.Reheat.SetPoints.Validation.ActiveAirFlow,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_ASHRAE_G36_PR1_TerminalUnits_Reheat_SetPoints_Validation_ActiveAirFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.ASHRAE.G36_PR1.TerminalUnits.Reheat.SetPoints.Validation.ActiveAirFlow,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_ASHRAE_G36_PR1_TerminalUnits_Reheat_SetPoints_Validation_ActiveAirFlow",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.811/1.811, allocations: 387.2 MB / 394.5 MB, free: 13.66 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.0009657/0.0009657, allocations: 177.4 kB / 487 MB, free: 5.363 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.156/1.156, allocations: 221.3 MB / 0.7819 GB, free: 1.367 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.0008491/0.0008491, allocations: 106.1 kB / 0.9213 GB, free: 2.605 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.4169/0.4177, allocations: 148.5 MB / 1.066 GB, free: 168.1 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1811/0.5988, allocations: 142.3 MB / 1.205 GB, free: 26.09 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5052/1.104, allocations: 152.3 MB / 1.354 GB, free: 15.69 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001848/1.104, allocations: 75.44 kB / 1.354 GB, free: 15.69 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: 361 * Number of variables: 361 Notification: Performance of Generate backend data structure: time 0.03745/1.142, allocations: 18.08 MB / 1.372 GB, free: 6.113 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.036e-05/1.142, allocations: 13 kB / 1.372 GB, free: 6.102 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001731/1.142, allocations: 154.1 kB / 1.372 GB, free: 5.949 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000828/1.143, allocations: 0.6839 MB / 1.373 GB, free: 5.375 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.179e-05/1.143, allocations: 55.44 kB / 1.373 GB, free: 5.324 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001076/1.143, allocations: 84 kB / 1.373 GB, free: 5.242 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001222/1.144, allocations: 0.8141 MB / 1.374 GB, free: 4.758 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001314/1.146, allocations: 0.8714 MB / 1.374 GB, free: 4.133 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.618e-05/1.146, allocations: 0 / 1.374 GB, free: 4.133 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.945e-05/1.146, allocations: 4 kB / 1.374 GB, free: 4.129 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.067e-05/1.146, allocations: 32 kB / 1.374 GB, free: 4.098 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003695/1.149, allocations: 3.042 MB / 1.377 GB, free: 1.836 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007258/1.15, allocations: 478.3 kB / 1.378 GB, free: 1.527 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003222/1.15, allocations: 276.4 kB / 1.378 GB, free: 1.367 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 4.404e-05/1.151, allocations: 8.656 kB / 1.378 GB, free: 1.359 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003917/1.151, allocations: 358.7 kB / 1.378 GB, free: 1.078 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=74): time 1.924e-06/1.151, allocations: 0 / 1.378 GB, free: 1.078 MB / 0.8073 GB Notification: Performance of matching and sorting (n=74): time 0.0007065/1.152, allocations: 0.4988 MB / 1.379 GB, free: 0.7109 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.843e-05/1.152, allocations: 217.9 kB / 1.379 GB, free: 464 kB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004105/1.152, allocations: 465.6 kB / 1.38 GB, free: 112 kB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 4.987e-05/1.152, allocations: 33.7 kB / 1.38 GB, free: 72 kB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003621/1.153, allocations: 490.4 kB / 1.38 GB, free: 15.64 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001621/1.153, allocations: 227.3 kB / 1.38 GB, free: 15.45 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.851e-05/1.153, allocations: 7.188 kB / 1.38 GB, free: 15.44 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 0.0001439/1.153, allocations: 372.6 kB / 1.381 GB, free: 15.09 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003853/1.153, allocations: 232.1 kB / 1.381 GB, free: 14.97 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004639/1.154, allocations: 330.8 kB / 1.381 GB, free: 14.74 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004882/1.154, allocations: 237.8 kB / 1.381 GB, free: 14.59 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/1.154, allocations: 0 / 1.381 GB, free: 14.59 MB / 0.823 GB Notification: Performance of matching and sorting (n=97) (initialization): time 0.001092/1.155, allocations: 0.6508 MB / 1.382 GB, free: 14.12 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 2.344e-05/1.155, allocations: 8 kB / 1.382 GB, free: 14.11 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.806e-06/1.155, allocations: 0 / 1.382 GB, free: 14.11 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.843e-05/1.155, allocations: 4 kB / 1.382 GB, free: 14.11 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005464/1.156, allocations: 131.7 kB / 1.382 GB, free: 13.98 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.585e-06/1.156, allocations: 4 kB / 1.382 GB, free: 13.98 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006714/1.157, allocations: 163.4 kB / 1.382 GB, free: 13.82 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.153e-05/1.157, allocations: 26.42 kB / 1.382 GB, free: 13.8 MB / 0.823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 24 ($whenCondition1,$whenCondition2,actAirSet_RehBox.not1.y,$PRE.actAirSet_RehBox.greThr.greHys.y,actAirSet_RehBox.greThr.greHys.y,actAirSet_RehBox1.not1.y,$PRE.actAirSet_RehBox1.greThr.greHys.y,actAirSet_RehBox1.greThr.greHys.y,$PRE.winSta.y,winSta.y,actAirSet_RehBox1.intEqu4.y,actAirSet_RehBox1.intEqu3.y,actAirSet_RehBox1.intEqu2.y,actAirSet_RehBox1.intEqu1.y,actAirSet_RehBox1.swi3.u2,actAirSet_RehBox1.and1.u1,actAirSet_RehBox1.and1.u2,actAirSet_RehBox.intEqu4.y,actAirSet_RehBox.intEqu3.y,actAirSet_RehBox.intEqu2.y,actAirSet_RehBox.intEqu1.y,actAirSet_RehBox.swi3.u2,actAirSet_RehBox.and1.u1,actAirSet_RehBox.and1.u2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 94 * 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.0001416/1.157, allocations: 126.9 kB / 1.383 GB, free: 13.67 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.871e-05/1.157, allocations: 67.16 kB / 1.383 GB, free: 13.61 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008984/1.158, allocations: 0.5104 MB / 1.383 GB, free: 13.24 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.627e-06/1.158, allocations: 8 kB / 1.383 GB, free: 13.23 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.656e-06/1.158, allocations: 3.984 kB / 1.383 GB, free: 13.23 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.446e-06/1.158, allocations: 4 kB / 1.383 GB, free: 13.23 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002472/1.16, allocations: 2.143 MB / 1.385 GB, free: 11.55 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.273e-06/1.16, allocations: 8 kB / 1.385 GB, free: 11.54 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004787/1.161, allocations: 133.9 kB / 1.385 GB, free: 11.41 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.272e-05/1.161, allocations: 12.41 kB / 1.385 GB, free: 11.4 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.004e-05/1.161, allocations: 19.98 kB / 1.385 GB, free: 11.38 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.127e-05/1.161, allocations: 19.86 kB / 1.385 GB, free: 11.36 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.521e-05/1.161, allocations: 12.12 kB / 1.385 GB, free: 11.35 MB / 0.823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001082/1.162, allocations: 1.196 MB / 1.387 GB, free: 10.06 MB / 0.823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001192/1.163, allocations: 1.578 MB / 1.388 GB, free: 8.383 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001199/1.163, allocations: 163 kB / 1.388 GB, free: 8.211 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.04e-05/1.164, allocations: 15.5 kB / 1.388 GB, free: 8.199 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004573/1.164, allocations: 63.94 kB / 1.388 GB, free: 8.137 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001297/1.164, allocations: 77.69 kB / 1.388 GB, free: 8.074 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.55e-05/1.164, allocations: 31.48 kB / 1.388 GB, free: 8.047 MB / 0.823 GB Notification: Performance of sort global known variables: time 0.0002996/1.165, allocations: 318 kB / 1.389 GB, free: 7.82 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.001189/1.166, allocations: 234 kB / 1.389 GB, free: 7.594 MB / 0.823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,actAirSet_RehBox.greThr.greHys.y,actAirSet_RehBox1.greThr.greHys.y,winSta.y,actAirSet_RehBox1.not1.y,actAirSet_RehBox.not1.y) * Number of discrete states: 2 (actAirSet_RehBox1.greThr.greHys.y,actAirSet_RehBox.greThr.greHys.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (78): * Single equations (assignments): 77 * 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.0001792/1.166, allocations: 138.3 kB / 1.389 GB, free: 7.457 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.0008825/1.167, allocations: 0.5905 MB / 1.39 GB, free: 7.059 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/1.167, allocations: 0 / 1.39 GB, free: 7.059 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.0006367/1.167, allocations: 390.3 kB / 1.39 GB, free: 6.809 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004806/1.168, allocations: 78.48 kB / 1.39 GB, free: 6.75 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002348/1.17, allocations: 1.305 MB / 1.391 GB, free: 5.465 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000918/1.171, allocations: 1.149 MB / 1.393 GB, free: 4.293 MB / 0.823 GB Notification: Performance of SimCode: time 2.5e-07/1.171, allocations: 0 / 1.393 GB, free: 4.293 MB / 0.823 GB (rm -f Buildings_9_Buildings.Controls.OBC.ASHRAE.G36_PR1.TerminalUnits.Reheat.SetPoints.Validation.ActiveAirFlow.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.ASHRAE.G36_PR1.TerminalUnits.Reheat.SetPoints.Validation.ActiveAirFlow.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.ASHRAE.G36_PR1.TerminalUnits.Reheat.SetPoints.Validation.ActiveAirFlow.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.ASHRAE.G36_PR1.TerminalUnits.Reheat.SetPoints.Validation.ActiveAirFlow.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.ASHRAE.G36_PR1.TerminalUnits.Reheat.SetPoints.Validation.ActiveAirFlow_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_ASHRAE_G36_PR1_TerminalUnits_Reheat_SetPoints_Validation_ActiveAirFlow_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_ASHRAE_G36_PR1_TerminalUnits_Reheat_SetPoints_Validation_ActiveAirFlow.fmu > Buildings_9_Buildings.Controls.OBC.ASHRAE.G36_PR1.TerminalUnits.Reheat.SetPoints.Validation.ActiveAirFlow.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.ASHRAE.G36_PR1.TerminalUnits.Reheat.SetPoints.Validation.ActiveAirFlow_res.mat does not exist to compare? outputFormat=mat