Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.ASHRAE.G36_PR1.TerminalUnits.Reheat.Validation.DamperValves.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.ASHRAE.G36_PR1.TerminalUnits.Reheat.Validation.DamperValves,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_ASHRAE_G36_PR1_TerminalUnits_Reheat_Validation_DamperValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.ASHRAE.G36_PR1.TerminalUnits.Reheat.Validation.DamperValves,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_ASHRAE_G36_PR1_TerminalUnits_Reheat_Validation_DamperValves",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 8.1.4-maint.8.1.x/package.mo): time 1.386/1.386, allocations: 289.8 MB / 297.1 MB, free: 6.672 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001005/0.001005, allocations: 185.3 kB / 366.3 MB, free: 1.969 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.133/1.133, allocations: 205.1 MB / 0.6256 GB, free: 5.809 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008107/0.0008109, allocations: 80.45 kB / 0.7395 GB, free: 39.68 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.1944/0.1952, allocations: 122.5 MB / 0.8591 GB, free: 13.22 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4677/0.6629, allocations: 116.3 MB / 0.9727 GB, free: 68.27 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1487/0.8116, allocations: 144.2 MB / 1.114 GB, free: 4.195 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001953/0.8118, allocations: 72.55 kB / 1.114 GB, free: 4.125 MB / 0.7136 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 274 * Number of variables: 274 Notification: Performance of Generate backend data structure: time 0.03848/0.8503, allocations: 16.94 MB / 1.13 GB, free: 3.137 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.251e-05/0.8504, allocations: 12 kB / 1.13 GB, free: 3.125 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000202/0.8506, allocations: 134.5 kB / 1.13 GB, free: 2.992 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008272/0.8514, allocations: 0.5973 MB / 1.131 GB, free: 2.352 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.363e-05/0.8515, allocations: 39.98 kB / 1.131 GB, free: 2.312 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000135/0.8516, allocations: 80 kB / 1.131 GB, free: 2.234 MB / 0.7292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001325/0.8529, allocations: 0.6994 MB / 1.132 GB, free: 1.531 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001541/0.8545, allocations: 0.9444 MB / 1.133 GB, free: 0.5273 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.298e-05/0.8545, allocations: 3.938 kB / 1.133 GB, free: 0.5234 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.716e-05/0.8546, allocations: 11.97 kB / 1.133 GB, free: 0.5117 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.814e-05/0.8546, allocations: 24 kB / 1.133 GB, free: 500 kB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004594/0.8592, allocations: 3.457 MB / 1.136 GB, free: 12.95 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001207/0.8605, allocations: 0.6727 MB / 1.137 GB, free: 12.26 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004858/0.861, allocations: 308 kB / 1.137 GB, free: 11.95 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 5.093e-05/0.861, allocations: 12.72 kB / 1.137 GB, free: 11.94 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006688/0.8617, allocations: 453.2 kB / 1.137 GB, free: 11.47 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=82): time 2.084e-06/0.8617, allocations: 0 / 1.137 GB, free: 11.47 MB / 0.7448 GB Notification: Performance of matching and sorting (n=82): time 0.001129/0.8628, allocations: 0.6046 MB / 1.138 GB, free: 10.86 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.377e-05/0.8629, allocations: 188.6 kB / 1.138 GB, free: 10.63 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005201/0.8635, allocations: 471.3 kB / 1.139 GB, free: 10.16 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 8.192e-05/0.8636, allocations: 45.69 kB / 1.139 GB, free: 10.11 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002529/0.8638, allocations: 399.7 kB / 1.139 GB, free: 9.715 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001748/0.864, allocations: 224.8 kB / 1.139 GB, free: 9.492 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.847e-05/0.8641, allocations: 0 / 1.139 GB, free: 9.492 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001603/0.8642, allocations: 382.8 kB / 1.14 GB, free: 9.109 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004403/0.8647, allocations: 250 kB / 1.14 GB, free: 8.863 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000604/0.8653, allocations: 492.2 kB / 1.14 GB, free: 8.285 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00044/0.8657, allocations: 262.2 kB / 1.141 GB, free: 8.031 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.8657, allocations: 4 kB / 1.141 GB, free: 8.027 MB / 0.7448 GB Notification: Performance of matching and sorting (n=121) (initialization): time 0.001251/0.867, allocations: 0.7364 MB / 1.141 GB, free: 7.281 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006393/0.8676, allocations: 1.923 MB / 1.143 GB, free: 5.207 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/0.8677, allocations: 8 kB / 1.143 GB, free: 5.199 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.08e-05/0.8677, allocations: 11.98 kB / 1.143 GB, free: 5.188 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006562/0.8683, allocations: 159.7 kB / 1.143 GB, free: 5.031 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.495e-05/0.8684, allocations: 15.92 kB / 1.143 GB, free: 5.016 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006366/0.869, allocations: 131.5 kB / 1.144 GB, free: 4.887 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.57e-05/0.8691, allocations: 38.27 kB / 1.144 GB, free: 4.852 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 4.839e-06/0.8691, allocations: 0 / 1.144 GB, free: 4.852 MB / 0.7448 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00103/0.8701, allocations: 0.6295 MB / 1.144 GB, free: 4.223 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.8702, allocations: 7.906 kB / 1.144 GB, free: 4.215 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.111e-05/0.8702, allocations: 8 kB / 1.144 GB, free: 4.207 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000578/0.8708, allocations: 160.3 kB / 1.144 GB, free: 4.051 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.848e-06/0.8708, allocations: 8 kB / 1.144 GB, free: 4.043 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005621/0.8713, allocations: 119.5 kB / 1.144 GB, free: 3.926 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.593e-05/0.8714, allocations: 47.89 kB / 1.144 GB, free: 3.879 MB / 0.7448 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 61 ($PRE.damVal.truHol2.onDelay.u,$PRE.damVal.truHol2.toOutputTrue.enableFire,$PRE.damVal.truHol2.toInitial.enableFire,$PRE.damVal.truDel3.u,$PRE.damVal.truDel4.u,$whenCondition7,$PRE.damVal.truDel4.t_next,$whenCondition4,$PRE.damVal.truDel3.t_next,$whenCondition1,$PRE.damVal.truHol2.onDelay.t_next,damVal.truDel4.t_next,damVal.truDel3.t_next,damVal.truHol2.onDelay.t_next,damVal.truHol2.stateGraphRoot.resume,damVal.truHol2.stateGraphRoot.suspend,$whenCondition10,$whenCondition8,$whenCondition9,$whenCondition5,$whenCondition6,$whenCondition2,$whenCondition3,damVal.and2.y,damVal.and4.y,$PRE.damVal.hys2.y,damVal.hys2.y,$PRE.damVal.hys3.y,damVal.hys3.y,$PRE.damVal.hys4.y,damVal.hys4.y,$PRE.damVal.hys6.y,damVal.hys6.y,$PRE.damVal.hys7.y,damVal.hys7.y,damVal.truHol2.stateGraphRoot.activeSteps,damVal.truHol2.onDelay.u,damVal.truHol2.onDelay.y,$PRE.damVal.truHol2.initialStep.localActive,damVal.truHol2.initialStep.localActive,$PRE.damVal.truHol2.initialStep.newActive,damVal.truHol2.initialStep.newActive,$PRE.damVal.truHol2.initialStep.oldActive,damVal.truHol2.initialStep.oldActive,damVal.truHol2.initialStep.active,$PRE.damVal.truHol2.outputTrue.localActive,damVal.truHol2.outputTrue.localActive,$PRE.damVal.truHol2.outputTrue.newActive,damVal.truHol2.outputTrue.newActive,$PRE.damVal.truHol2.outputTrue.oldActive,damVal.truHol2.outputTrue.oldActive,damVal.truHol2.outputTrue.active,damVal.truHol2.toOutputTrue.enableFire,damVal.truHol2.toInitial.enableFire,damVal.truDel3.u,damVal.truDel3.y,damVal.truDel4.u,damVal.truDel4.y,damVal.or2.y,damVal.and1.y,damVal.conVal.trigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (121): * Single equations (assignments): 121 * Array equations: 0 * Algorithm blocks: 0 * 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.0001958/0.8716, allocations: 160.7 kB / 1.145 GB, free: 3.715 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001054/0.8717, allocations: 76.08 kB / 1.145 GB, free: 3.641 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001203/0.8729, allocations: 0.6781 MB / 1.145 GB, free: 2.953 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.816e-06/0.873, allocations: 8 kB / 1.145 GB, free: 2.945 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.873, allocations: 0 / 1.145 GB, free: 2.945 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.067e-05/0.873, allocations: 7.984 kB / 1.145 GB, free: 2.938 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002532/0.8755, allocations: 1.788 MB / 1.147 GB, free: 1.078 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.8755, allocations: 4 kB / 1.147 GB, free: 1.074 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005172/0.8761, allocations: 119.9 kB / 1.147 GB, free: 0.957 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.145e-06/0.8761, allocations: 4 kB / 1.147 GB, free: 0.9531 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.274e-05/0.8761, allocations: 11.92 kB / 1.147 GB, free: 0.9414 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.891e-06/0.8762, allocations: 4.656 kB / 1.147 GB, free: 0.9375 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.8762, allocations: 4 kB / 1.147 GB, free: 0.9336 MB / 0.7448 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001699/0.8779, allocations: 1.215 MB / 1.148 GB, free: 15.65 MB / 0.7605 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002326/0.8802, allocations: 1.972 MB / 1.15 GB, free: 13.62 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001196/0.8803, allocations: 148.1 kB / 1.151 GB, free: 13.45 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001187/0.8805, allocations: 12 kB / 1.151 GB, free: 13.44 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005294/0.881, allocations: 83.98 kB / 1.151 GB, free: 13.36 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001959/0.8812, allocations: 106.5 kB / 1.151 GB, free: 13.26 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.393e-05/0.8813, allocations: 35.98 kB / 1.151 GB, free: 13.22 MB / 0.7605 GB Notification: Performance of sort global known variables: time 0.0003334/0.8816, allocations: 311 kB / 1.151 GB, free: 12.92 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.002317/0.8839, allocations: 346.5 kB / 1.151 GB, free: 12.58 MB / 0.7605 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 1 (damVal.conVal.I.y) * Number of discrete variables: 41 (damVal.truDel4.u,damVal.truHol2.onDelay.u,damVal.truHol2.outputTrue.localActive,damVal.truHol2.outputTrue.active,damVal.truHol2.initialStep.active,damVal.truDel3.u,$cse1,$cse2,$whenCondition10,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition1,$whenCondition2,$whenCondition3,damVal.and2.y,damVal.and4.y,damVal.hys2.y,damVal.hys3.y,damVal.hys4.y,damVal.hys6.y,damVal.hys7.y,damVal.truHol2.stateGraphRoot.activeSteps,damVal.truHol2.onDelay.y,damVal.truHol2.onDelay.t_next,damVal.truHol2.initialStep.localActive,damVal.truHol2.initialStep.newActive,damVal.truHol2.initialStep.oldActive,damVal.truHol2.outputTrue.newActive,damVal.truHol2.outputTrue.oldActive,damVal.truHol2.toOutputTrue.enableFire,damVal.truHol2.toInitial.enableFire,damVal.truDel3.y,damVal.truDel3.t_next,damVal.truDel4.y,damVal.truDel4.t_next,damVal.or2.y,damVal.and1.y) * Number of discrete states: 10 (damVal.truDel4.t_next,damVal.truDel3.t_next,damVal.truHol2.onDelay.t_next,damVal.hys4.y,damVal.hys6.y,damVal.truHol2.initialStep.newActive,damVal.truHol2.outputTrue.newActive,damVal.hys3.y,damVal.hys7.y,damVal.hys2.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (87): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.0002531/0.8842, allocations: 155 kB / 1.152 GB, free: 12.42 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.001795/0.886, allocations: 1.086 MB / 1.153 GB, free: 11.34 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.886, allocations: 4 kB / 1.153 GB, free: 11.34 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.0005881/0.8866, allocations: 386.4 kB / 1.153 GB, free: 10.96 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000551/0.8872, allocations: 94.42 kB / 1.153 GB, free: 10.87 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002604/0.8898, allocations: 1.204 MB / 1.154 GB, free: 9.621 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009136/0.8907, allocations: 1.117 MB / 1.155 GB, free: 8.477 MB / 0.7605 GB Notification: Performance of SimCode: time 1.663e-06/0.8907, allocations: 0 / 1.155 GB, free: 8.477 MB / 0.7605 GB (rm -f Buildings_8_Buildings.Controls.OBC.ASHRAE.G36_PR1.TerminalUnits.Reheat.Validation.DamperValves.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.ASHRAE.G36_PR1.TerminalUnits.Reheat.Validation.DamperValves.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.ASHRAE.G36_PR1.TerminalUnits.Reheat.Validation.DamperValves.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.ASHRAE.G36_PR1.TerminalUnits.Reheat.Validation.DamperValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_ASHRAE_G36_PR1_TerminalUnits_Reheat_Validation_DamperValves_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_ASHRAE_G36_PR1_TerminalUnits_Reheat_Validation_DamperValves.fmu > Buildings_8_Buildings.Controls.OBC.ASHRAE.G36_PR1.TerminalUnits.Reheat.Validation.DamperValves.pipe 2>&1)