Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.ASHRAE.G36_PR1.TerminalUnits.Reheat.Validation.DamperValves.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.Validation.DamperValves,fileNamePrefix="Buildings_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 1.806/1.806, allocations: 387.2 MB / 394.5 MB, free: 13.63 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.0009306/0.0009307, allocations: 185.2 kB / 487 MB, free: 5.379 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.148/1.148, allocations: 221.3 MB / 0.7819 GB, free: 1.359 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.0008266/0.0008266, allocations: 99.48 kB / 0.9213 GB, free: 2.602 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.4234/0.4242, allocations: 148.5 MB / 1.066 GB, free: 168.1 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1846/0.6089, allocations: 142.3 MB / 1.205 GB, free: 26.09 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.518/1.127, allocations: 154.7 MB / 1.356 GB, free: 15.84 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000185/1.127, allocations: 74.67 kB / 1.356 GB, free: 15.84 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: 274 * Number of variables: 274 Notification: Performance of Generate backend data structure: time 0.03468/1.162, allocations: 16.77 MB / 1.373 GB, free: 5.34 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.144e-05/1.162, allocations: 11.98 kB / 1.373 GB, free: 5.328 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001721/1.162, allocations: 130.5 kB / 1.373 GB, free: 5.199 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006634/1.163, allocations: 0.579 MB / 1.374 GB, free: 4.73 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.601e-05/1.163, allocations: 43.61 kB / 1.374 GB, free: 4.691 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001167/1.163, allocations: 79.98 kB / 1.374 GB, free: 4.613 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00109/1.164, allocations: 0.6812 MB / 1.374 GB, free: 4.215 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001274/1.165, allocations: 0.945 MB / 1.375 GB, free: 3.488 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.187e-05/1.165, allocations: 3.984 kB / 1.375 GB, free: 3.484 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.295e-05/1.165, allocations: 11.92 kB / 1.375 GB, free: 3.473 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.709e-05/1.165, allocations: 24 kB / 1.375 GB, free: 3.449 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003454/1.169, allocations: 3.385 MB / 1.379 GB, free: 0.8164 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009984/1.17, allocations: 0.7078 MB / 1.379 GB, free: 328 kB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004146/1.17, allocations: 337.4 kB / 1.38 GB, free: 112 kB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 5.052e-05/1.17, allocations: 16.16 kB / 1.38 GB, free: 100 kB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006929/1.171, allocations: 463.4 kB / 1.38 GB, free: 15.74 MB / 0.823 GB Notification: Performance of pre-optimization done (n=84): time 2.174e-06/1.171, allocations: 0 / 1.38 GB, free: 15.74 MB / 0.823 GB Notification: Performance of matching and sorting (n=84): time 0.001066/1.172, allocations: 0.6119 MB / 1.381 GB, free: 15.3 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001391/1.172, allocations: 247.2 kB / 1.381 GB, free: 15 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004939/1.173, allocations: 425.6 kB / 1.381 GB, free: 14.68 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 0.0001022/1.173, allocations: 50.56 kB / 1.381 GB, free: 14.64 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 0.000256/1.173, allocations: 385.1 kB / 1.382 GB, free: 14.31 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001764/1.173, allocations: 223 kB / 1.382 GB, free: 14.12 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.718e-05/1.173, allocations: 0 / 1.382 GB, free: 14.12 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 0.0001536/1.174, allocations: 383.1 kB / 1.382 GB, free: 13.77 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004182/1.174, allocations: 251.5 kB / 1.383 GB, free: 13.63 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000555/1.175, allocations: 480.2 kB / 1.383 GB, free: 13.2 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004029/1.175, allocations: 269.9 kB / 1.383 GB, free: 13.03 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/1.175, allocations: 0 / 1.383 GB, free: 13.03 MB / 0.823 GB Notification: Performance of matching and sorting (n=123) (initialization): time 0.001098/1.176, allocations: 0.7298 MB / 1.384 GB, free: 12.48 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007009/1.177, allocations: 1.915 MB / 1.386 GB, free: 10.45 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.272e-05/1.177, allocations: 8 kB / 1.386 GB, free: 10.44 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.096e-05/1.177, allocations: 11.94 kB / 1.386 GB, free: 10.43 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000645/1.178, allocations: 167 kB / 1.386 GB, free: 10.27 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.093e-05/1.178, allocations: 8 kB / 1.386 GB, free: 10.26 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000597/1.178, allocations: 135.4 kB / 1.386 GB, free: 10.13 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.141e-05/1.178, allocations: 46.34 kB / 1.386 GB, free: 10.09 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 5.431e-06/1.178, allocations: 7.938 kB / 1.386 GB, free: 10.09 MB / 0.823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009596/1.179, allocations: 0.6177 MB / 1.387 GB, free: 9.652 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/1.179, allocations: 8 kB / 1.387 GB, free: 9.645 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.104e-05/1.179, allocations: 12 kB / 1.387 GB, free: 9.633 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005543/1.18, allocations: 146.7 kB / 1.387 GB, free: 9.496 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.085e-05/1.18, allocations: 19.97 kB / 1.387 GB, free: 9.477 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005227/1.18, allocations: 119.5 kB / 1.387 GB, free: 9.359 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.195e-05/1.18, allocations: 42.05 kB / 1.387 GB, free: 9.328 MB / 0.823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 65 ($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,$PRE.damVal.truHol2.toOutputTrue.t_start,damVal.truHol2.toOutputTrue.t_start,$PRE.damVal.truHol2.toInitial.t_start,damVal.truHol2.toInitial.t_start,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.0002062/1.181, allocations: 167.7 kB / 1.387 GB, free: 9.164 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001027/1.181, allocations: 79.08 kB / 1.387 GB, free: 9.086 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001066/1.182, allocations: 0.6532 MB / 1.388 GB, free: 8.637 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.466e-06/1.182, allocations: 8 kB / 1.388 GB, free: 8.629 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/1.182, allocations: 4 kB / 1.388 GB, free: 8.625 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.057e-06/1.182, allocations: 3.984 kB / 1.388 GB, free: 8.621 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002332/1.184, allocations: 1.77 MB / 1.39 GB, free: 7.332 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/1.184, allocations: 128 / 1.39 GB, free: 7.332 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004939/1.185, allocations: 122.5 kB / 1.39 GB, free: 7.219 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.935e-05/1.185, allocations: 8 kB / 1.39 GB, free: 7.211 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.31e-05/1.185, allocations: 11.98 kB / 1.39 GB, free: 7.199 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.813e-06/1.185, allocations: 8 kB / 1.39 GB, free: 7.191 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/1.185, allocations: 0 / 1.39 GB, free: 7.191 MB / 0.823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001593/1.186, allocations: 1.235 MB / 1.391 GB, free: 6.254 MB / 0.823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002172/1.189, allocations: 1.982 MB / 1.393 GB, free: 4.758 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001125/1.189, allocations: 147.7 kB / 1.393 GB, free: 4.598 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001193/1.189, allocations: 22.55 kB / 1.393 GB, free: 4.582 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005092/1.189, allocations: 83.92 kB / 1.393 GB, free: 4.5 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001972/1.19, allocations: 99.03 kB / 1.393 GB, free: 4.422 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.353e-05/1.19, allocations: 43.3 kB / 1.393 GB, free: 4.387 MB / 0.823 GB Notification: Performance of sort global known variables: time 0.0003031/1.19, allocations: 291.1 kB / 1.394 GB, free: 4.176 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.00199/1.192, allocations: 346 kB / 1.394 GB, free: 3.84 MB / 0.823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 1 (damVal.conVal.I.y) * Number of discrete variables: 43 (damVal.truHol2.toInitial.t_start,damVal.truHol2.toOutputTrue.t_start,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: 12 (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,damVal.truHol2.toOutputTrue.t_start,damVal.truHol2.toInitial.t_start) * Top-level inputs: 0 Notification: Strong component statistics for simulation (89): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * 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.0002311/1.192, allocations: 159.6 kB / 1.394 GB, free: 3.688 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.001536/1.194, allocations: 1.079 MB / 1.395 GB, free: 2.965 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/1.194, allocations: 4.438 kB / 1.395 GB, free: 2.961 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.0005716/1.194, allocations: 402.2 kB / 1.396 GB, free: 2.703 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005366/1.195, allocations: 95.77 kB / 1.396 GB, free: 2.629 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002324/1.197, allocations: 1.181 MB / 1.397 GB, free: 1.57 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008071/1.198, allocations: 1.107 MB / 1.398 GB, free: 456 kB / 0.823 GB Notification: Performance of SimCode: time 3.1e-07/1.198, allocations: 0 / 1.398 GB, free: 456 kB / 0.823 GB (rm -f Buildings_9_Buildings.Controls.OBC.ASHRAE.G36_PR1.TerminalUnits.Reheat.Validation.DamperValves.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.ASHRAE.G36_PR1.TerminalUnits.Reheat.Validation.DamperValves.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.ASHRAE.G36_PR1.TerminalUnits.Reheat.Validation.DamperValves.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.ASHRAE.G36_PR1.TerminalUnits.Reheat.Validation.DamperValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.ASHRAE.G36_PR1.TerminalUnits.Reheat.Validation.DamperValves_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_ASHRAE_G36_PR1_TerminalUnits_Reheat_Validation_DamperValves_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_ASHRAE_G36_PR1_TerminalUnits_Reheat_Validation_DamperValves.fmu > Buildings_9_Buildings.Controls.OBC.ASHRAE.G36_PR1.TerminalUnits.Reheat.Validation.DamperValves.pipe 2>&1)