Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.ASHRAE.G36_PR1.TerminalUnits.Reheat.Validation.DamperValves.conf.json 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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.ASHRAE.G36_PR1.TerminalUnits.Reheat.Validation.DamperValves,fileNamePrefix="Buildings_7_0_0_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.1/package.mo): time 2.062/2.062, allocations: 248.6 MB / 255.9 MB, free: 1.195 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001725/0.001724, allocations: 191.5 kB / 315.1 MB, free: 9.602 MB / 258.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.934/1.934, allocations: 205.1 MB / 0.5658 GB, free: 14.17 MB / 434.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001321/0.00132, allocations: 92.72 kB / 0.6699 GB, free: 51.8 MB / 498.8 MB Notification: Performance of FrontEnd - loaded program: time 0.2943/0.2957, allocations: 112.4 MB / 0.7798 GB, free: 10.64 MB / 0.5496 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2581/0.5538, allocations: 106.2 MB / 0.8835 GB, free: 300 kB / 0.6434 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6327/1.187, allocations: 139.1 MB / 1.019 GB, free: 7.633 MB / 0.659 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004594/1.187, allocations: 78.3 kB / 1.019 GB, free: 7.559 MB / 0.659 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.07977/1.267, allocations: 18.29 MB / 1.037 GB, free: 5.414 MB / 0.6746 GB Notification: Performance of prepare preOptimizeDAE: time 4.702e-05/1.267, allocations: 12 kB / 1.037 GB, free: 5.402 MB / 0.6746 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006598/1.268, allocations: 142.4 kB / 1.037 GB, free: 5.262 MB / 0.6746 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001816/1.27, allocations: 0.6038 MB / 1.038 GB, free: 4.613 MB / 0.6746 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001217/1.27, allocations: 40 kB / 1.038 GB, free: 4.574 MB / 0.6746 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003166/1.27, allocations: 79.89 kB / 1.038 GB, free: 4.496 MB / 0.6746 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003221/1.273, allocations: 0.7152 MB / 1.039 GB, free: 3.777 MB / 0.6746 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003179/1.277, allocations: 0.9594 MB / 1.04 GB, free: 2.758 MB / 0.6746 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.561e-05/1.277, allocations: 3.938 kB / 1.04 GB, free: 2.754 MB / 0.6746 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001386/1.277, allocations: 7.984 kB / 1.04 GB, free: 2.746 MB / 0.6746 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.566e-05/1.277, allocations: 28 kB / 1.04 GB, free: 2.719 MB / 0.6746 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009133/1.286, allocations: 3.506 MB / 1.043 GB, free: 15.15 MB / 0.6902 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002416/1.288, allocations: 0.7017 MB / 1.044 GB, free: 14.43 MB / 0.6902 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009087/1.289, allocations: 313.2 kB / 1.044 GB, free: 14.12 MB / 0.6902 GB Notification: Performance of preOpt evalFunc (simulation): time 7.252e-05/1.289, allocations: 12.66 kB / 1.044 GB, free: 14.11 MB / 0.6902 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001235/1.291, allocations: 462.7 kB / 1.045 GB, free: 13.63 MB / 0.6902 GB Notification: Performance of pre-optimization done (n=83): time 3.607e-06/1.291, allocations: 0 / 1.045 GB, free: 13.63 MB / 0.6902 GB Notification: Performance of matching and sorting (n=83): time 0.002069/1.293, allocations: 0.6085 MB / 1.045 GB, free: 13.02 MB / 0.6902 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001134/1.293, allocations: 188.6 kB / 1.045 GB, free: 12.79 MB / 0.6902 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001019/1.294, allocations: 485.8 kB / 1.046 GB, free: 12.31 MB / 0.6902 GB Notification: Performance of collectPreVariables (initialization): time 0.0001927/1.294, allocations: 53.62 kB / 1.046 GB, free: 12.25 MB / 0.6902 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004418/1.295, allocations: 410 kB / 1.046 GB, free: 11.84 MB / 0.6902 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003312/1.295, allocations: 224.9 kB / 1.047 GB, free: 11.62 MB / 0.6902 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.122e-05/1.295, allocations: 0 / 1.047 GB, free: 11.62 MB / 0.6902 GB Notification: Performance of setup shared object (initialization): time 0.0002158/1.295, allocations: 382.8 kB / 1.047 GB, free: 11.24 MB / 0.6902 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009188/1.296, allocations: 250 kB / 1.047 GB, free: 11 MB / 0.6902 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001143/1.297, allocations: 0.4884 MB / 1.048 GB, free: 10.4 MB / 0.6902 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008636/1.298, allocations: 264.4 kB / 1.048 GB, free: 10.14 MB / 0.6902 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.01e-05/1.298, allocations: 4 kB / 1.048 GB, free: 10.14 MB / 0.6902 GB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002429/1.301, allocations: 0.7517 MB / 1.049 GB, free: 9.383 MB / 0.6902 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007654/1.302, allocations: 1.915 MB / 1.05 GB, free: 7.316 MB / 0.6902 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.758e-05/1.302, allocations: 4 kB / 1.05 GB, free: 7.312 MB / 0.6902 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.916e-05/1.302, allocations: 12 kB / 1.05 GB, free: 7.301 MB / 0.6902 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001385/1.303, allocations: 163.7 kB / 1.051 GB, free: 7.141 MB / 0.6902 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.459e-05/1.303, allocations: 19.92 kB / 1.051 GB, free: 7.121 MB / 0.6902 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001384/1.304, allocations: 137.5 kB / 1.051 GB, free: 6.988 MB / 0.6902 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001256/1.305, allocations: 36 kB / 1.051 GB, free: 6.953 MB / 0.6902 GB Notification: Performance of prepare postOptimizeDAE: time 1.155e-05/1.305, allocations: 4 kB / 1.051 GB, free: 6.949 MB / 0.6902 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002024/1.307, allocations: 0.6334 MB / 1.051 GB, free: 6.316 MB / 0.6902 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.546e-05/1.307, allocations: 4.859 kB / 1.051 GB, free: 6.312 MB / 0.6902 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.328e-05/1.307, allocations: 8.656 kB / 1.051 GB, free: 6.305 MB / 0.6902 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001312/1.308, allocations: 159.7 kB / 1.052 GB, free: 6.148 MB / 0.6902 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.955e-05/1.308, allocations: 15.98 kB / 1.052 GB, free: 6.133 MB / 0.6902 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001251/1.309, allocations: 127.5 kB / 1.052 GB, free: 6.008 MB / 0.6902 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001158/1.309, allocations: 36 kB / 1.052 GB, free: 5.973 MB / 0.6902 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.0004471/1.31, allocations: 174.8 kB / 1.052 GB, free: 5.801 MB / 0.6902 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002185/1.31, allocations: 71.16 kB / 1.052 GB, free: 5.73 MB / 0.6902 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002258/1.312, allocations: 0.6812 MB / 1.053 GB, free: 5.039 MB / 0.6902 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.597e-05/1.312, allocations: 8 kB / 1.053 GB, free: 5.031 MB / 0.6902 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.336e-06/1.312, allocations: 0 / 1.053 GB, free: 5.031 MB / 0.6902 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.443e-05/1.313, allocations: 3.984 kB / 1.053 GB, free: 5.027 MB / 0.6902 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004889/1.317, allocations: 1.82 MB / 1.054 GB, free: 3.141 MB / 0.6902 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.244e-05/1.317, allocations: 4 kB / 1.054 GB, free: 3.137 MB / 0.6902 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001015/1.318, allocations: 117 kB / 1.055 GB, free: 3.023 MB / 0.6902 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.584e-05/1.319, allocations: 4 kB / 1.055 GB, free: 3.02 MB / 0.6902 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.061e-05/1.319, allocations: 19.97 kB / 1.055 GB, free: 3 MB / 0.6902 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.078e-05/1.319, allocations: 5.5 kB / 1.055 GB, free: 2.996 MB / 0.6902 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/1.319, allocations: 0 / 1.055 GB, free: 2.996 MB / 0.6902 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003236/1.322, allocations: 1.227 MB / 1.056 GB, free: 1.707 MB / 0.6902 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005684/1.328, allocations: 1.981 MB / 1.058 GB, free: 15.66 MB / 0.7059 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002974/1.328, allocations: 156 kB / 1.058 GB, free: 15.48 MB / 0.7059 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002622/1.328, allocations: 13.78 kB / 1.058 GB, free: 15.47 MB / 0.7059 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001147/1.329, allocations: 79.98 kB / 1.058 GB, free: 15.39 MB / 0.7059 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003515/1.33, allocations: 104.5 kB / 1.058 GB, free: 15.29 MB / 0.7059 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000178/1.33, allocations: 35.98 kB / 1.058 GB, free: 15.26 MB / 0.7059 GB Notification: Performance of sort global known variables: time 0.0008796/1.331, allocations: 327 kB / 1.058 GB, free: 14.94 MB / 0.7059 GB Notification: Performance of remove unused functions: time 0.003792/1.335, allocations: 346.5 kB / 1.059 GB, free: 14.6 MB / 0.7059 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.0004298/1.335, allocations: 165 kB / 1.059 GB, free: 14.44 MB / 0.7059 GB Notification: Performance of simCode: created initialization part: time 0.004019/1.339, allocations: 1.102 MB / 1.06 GB, free: 13.34 MB / 0.7059 GB Notification: Performance of simCode: created event and clocks part: time 1.127e-05/1.339, allocations: 0 / 1.06 GB, free: 13.34 MB / 0.7059 GB Notification: Performance of simCode: created simulation system equations: time 0.001798/1.341, allocations: 395.7 kB / 1.06 GB, free: 12.96 MB / 0.7059 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001664/1.343, allocations: 102.9 kB / 1.06 GB, free: 12.86 MB / 0.7059 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006999/1.35, allocations: 1.227 MB / 1.062 GB, free: 11.59 MB / 0.7059 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002279/1.352, allocations: 1.129 MB / 1.063 GB, free: 10.43 MB / 0.7059 GB Notification: Performance of SimCode: time 1.984e-06/1.352, allocations: 0 / 1.063 GB, free: 10.43 MB / 0.7059 GB