Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.ASHRAE.G36_PR1.TerminalUnits.Reheat.Validation.DamperValves.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.ASHRAE.G36_PR1.TerminalUnits.Reheat.Validation.DamperValves,fileNamePrefix="Buildings_maint_7_0_x_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_maint_7_0_x_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 7.0.3-maint.7.0.x/package.mo): time 1.23/1.23, allocations: 249.4 MB / 256.7 MB, free: 6.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001044/0.001044, allocations: 185.2 kB / 316 MB, free: 3.543 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.15/1.15, allocations: 205.1 MB / 0.5667 GB, free: 15.61 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007898/0.0007898, allocations: 90.2 kB / 0.671 GB, free: 4.734 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3405/0.3414, allocations: 112.5 MB / 0.7809 GB, free: 102.9 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1617/0.503, allocations: 106.3 MB / 0.8847 GB, free: 12.5 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4806/0.9837, allocations: 140.3 MB / 1.022 GB, free: 14.46 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002643/0.984, allocations: 77.84 kB / 1.022 GB, free: 14.42 MB / 0.6511 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 280 * Number of variables: 280 Notification: Performance of Generate backend data structure: time 0.04211/1.026, allocations: 18.3 MB / 1.04 GB, free: 15.18 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/1.026, allocations: 8 kB / 1.04 GB, free: 15.17 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002206/1.026, allocations: 138.4 kB / 1.04 GB, free: 15.04 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008383/1.027, allocations: 0.6095 MB / 1.04 GB, free: 14.54 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.922e-05/1.027, allocations: 47.03 kB / 1.04 GB, free: 14.49 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000134/1.027, allocations: 79.98 kB / 1.04 GB, free: 14.41 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001297/1.029, allocations: 0.7108 MB / 1.041 GB, free: 14 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001706/1.03, allocations: 0.959 MB / 1.042 GB, free: 13.27 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.648e-05/1.031, allocations: 8 kB / 1.042 GB, free: 13.26 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.474e-05/1.031, allocations: 7.234 kB / 1.042 GB, free: 13.25 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.112e-05/1.031, allocations: 28 kB / 1.042 GB, free: 13.23 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00535/1.036, allocations: 3.501 MB / 1.046 GB, free: 10.48 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001309/1.037, allocations: 0.7057 MB / 1.046 GB, free: 10 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004388/1.038, allocations: 307.9 kB / 1.047 GB, free: 9.824 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 5.448e-05/1.038, allocations: 12.41 kB / 1.047 GB, free: 9.816 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006717/1.039, allocations: 466.2 kB / 1.047 GB, free: 9.477 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=83): time 2.595e-06/1.039, allocations: 0 / 1.047 GB, free: 9.477 MB / 0.6667 GB Notification: Performance of matching and sorting (n=83): time 0.001118/1.04, allocations: 0.6064 MB / 1.048 GB, free: 9.035 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001069/1.04, allocations: 196.1 kB / 1.048 GB, free: 8.805 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006022/1.04, allocations: 482.8 kB / 1.048 GB, free: 8.449 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 0.0001002/1.041, allocations: 45.33 kB / 1.048 GB, free: 8.406 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002729/1.041, allocations: 402.2 kB / 1.049 GB, free: 8.055 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001911/1.041, allocations: 229.2 kB / 1.049 GB, free: 7.859 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.959e-05/1.041, allocations: 7.969 kB / 1.049 GB, free: 7.852 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001543/1.041, allocations: 384.6 kB / 1.049 GB, free: 7.5 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004225/1.042, allocations: 246.6 kB / 1.05 GB, free: 7.371 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005842/1.042, allocations: 493.8 kB / 1.05 GB, free: 6.922 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004386/1.043, allocations: 269.6 kB / 1.05 GB, free: 6.754 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/1.043, allocations: 4 kB / 1.05 GB, free: 6.75 MB / 0.6667 GB Notification: Performance of matching and sorting (n=123) (initialization): time 0.001177/1.044, allocations: 0.7493 MB / 1.051 GB, free: 6.191 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007214/1.045, allocations: 1.916 MB / 1.053 GB, free: 4.164 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.26e-05/1.045, allocations: 4 kB / 1.053 GB, free: 4.16 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.346e-05/1.045, allocations: 15.94 kB / 1.053 GB, free: 4.145 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007072/1.045, allocations: 162.2 kB / 1.053 GB, free: 3.992 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.81e-05/1.045, allocations: 19.84 kB / 1.053 GB, free: 3.973 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006506/1.046, allocations: 135.4 kB / 1.053 GB, free: 3.84 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.667e-05/1.046, allocations: 38.12 kB / 1.053 GB, free: 3.812 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 6.743e-06/1.046, allocations: 4 kB / 1.053 GB, free: 3.809 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001011/1.047, allocations: 0.6359 MB / 1.054 GB, free: 3.367 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/1.047, allocations: 8 kB / 1.054 GB, free: 3.359 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.292e-05/1.047, allocations: 12 kB / 1.054 GB, free: 3.348 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006029/1.048, allocations: 155.5 kB / 1.054 GB, free: 3.203 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.013e-05/1.048, allocations: 11.94 kB / 1.054 GB, free: 3.191 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005845/1.048, allocations: 123.5 kB / 1.054 GB, free: 3.07 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.19e-05/1.048, allocations: 35.19 kB / 1.054 GB, free: 3.043 MB / 0.6667 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 (123): * Single equations (assignments): 123 * 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.0002374/1.049, allocations: 175.5 kB / 1.054 GB, free: 2.871 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001335/1.049, allocations: 71.16 kB / 1.054 GB, free: 2.801 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001227/1.05, allocations: 0.681 MB / 1.055 GB, free: 2.328 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.548e-06/1.05, allocations: 8 kB / 1.055 GB, free: 2.32 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-06/1.05, allocations: 4 kB / 1.055 GB, free: 2.316 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.101e-05/1.05, allocations: 7.984 kB / 1.055 GB, free: 2.309 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002589/1.053, allocations: 1.811 MB / 1.057 GB, free: 0.9727 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.991e-06/1.053, allocations: 4 kB / 1.057 GB, free: 0.9688 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005356/1.053, allocations: 118.6 kB / 1.057 GB, free: 0.8594 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.566e-06/1.053, allocations: 4 kB / 1.057 GB, free: 0.8555 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.564e-05/1.053, allocations: 19.91 kB / 1.057 GB, free: 0.8398 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.32e-06/1.053, allocations: 8.031 kB / 1.057 GB, free: 0.832 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/1.053, allocations: 3.938 kB / 1.057 GB, free: 0.8281 MB / 0.6667 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001679/1.055, allocations: 1.22 MB / 1.058 GB, free: 15.93 MB / 0.6823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002237/1.057, allocations: 1.992 MB / 1.06 GB, free: 14.45 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001464/1.057, allocations: 147.9 kB / 1.06 GB, free: 14.29 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001288/1.058, allocations: 14.88 kB / 1.06 GB, free: 14.29 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005444/1.058, allocations: 87.89 kB / 1.06 GB, free: 14.2 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001947/1.058, allocations: 94.42 kB / 1.06 GB, free: 14.12 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.325e-05/1.058, allocations: 35.17 kB / 1.061 GB, free: 14.1 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.0003738/1.059, allocations: 328.8 kB / 1.061 GB, free: 13.86 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.002206/1.061, allocations: 346.1 kB / 1.061 GB, free: 13.53 MB / 0.6823 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 (88): * Single equations (assignments): 80 * 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.000256/1.061, allocations: 165.8 kB / 1.061 GB, free: 13.37 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.001749/1.063, allocations: 1.105 MB / 1.062 GB, free: 12.63 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/1.063, allocations: 0 / 1.062 GB, free: 12.63 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0005671/1.064, allocations: 390.5 kB / 1.063 GB, free: 12.38 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005906/1.064, allocations: 107.7 kB / 1.063 GB, free: 12.3 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002605/1.067, allocations: 1.215 MB / 1.064 GB, free: 11.22 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009215/1.068, allocations: 1.135 MB / 1.065 GB, free: 10.06 MB / 0.6823 GB Notification: Performance of SimCode: time 4e-07/1.068, allocations: 0 / 1.065 GB, free: 10.06 MB / 0.6823 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.ASHRAE.G36_PR1.TerminalUnits.Reheat.Validation.DamperValves.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.ASHRAE.G36_PR1.TerminalUnits.Reheat.Validation.DamperValves.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.ASHRAE.G36_PR1.TerminalUnits.Reheat.Validation.DamperValves.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.ASHRAE.G36_PR1.TerminalUnits.Reheat.Validation.DamperValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_OBC_ASHRAE_G36_PR1_TerminalUnits_Reheat_Validation_DamperValves_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_OBC_ASHRAE_G36_PR1_TerminalUnits_Reheat_Validation_DamperValves.fmu > Buildings_maint.7.0.x_Buildings.Controls.OBC.ASHRAE.G36_PR1.TerminalUnits.Reheat.Validation.DamperValves.pipe 2>&1)