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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.449/2.449, allocations: 248.7 MB / 256.2 MB, free: 7.098 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.001539/0.001539, allocations: 183.5 kB / 315.4 MB, free: 4.004 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.056/2.056, allocations: 205.3 MB / 0.5662 GB, free: 0.5508 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001087/0.001087, allocations: 90.53 kB / 0.6704 GB, free: 5.746 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.384e-05/2.392e-05, allocations: 4 kB / 0.7804 GB, free: 103.3 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2104/0.2105, allocations: 106.2 MB / 0.8841 GB, free: 12.96 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9013/1.112, allocations: 140.1 MB / 1.021 GB, free: 14.87 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002647/1.112, allocations: 82 kB / 1.021 GB, free: 14.83 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.06775/1.18, allocations: 17.32 MB / 1.038 GB, free: 0.5625 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.465e-06/1.18, allocations: 0 / 1.038 GB, free: 0.5625 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 9.172e-05/1.18, allocations: 24 kB / 1.038 GB, free: 0.5391 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.003842/1.184, allocations: 1.194 MB / 1.039 GB, free: 15.36 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 5.551e-05/1.184, allocations: 12.03 kB / 1.039 GB, free: 15.35 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000503/1.185, allocations: 138.4 kB / 1.039 GB, free: 15.21 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001677/1.186, allocations: 0.6001 MB / 1.04 GB, free: 14.72 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001002/1.186, allocations: 43.48 kB / 1.04 GB, free: 14.68 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002596/1.187, allocations: 76 kB / 1.04 GB, free: 14.61 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002225/1.189, allocations: 0.7186 MB / 1.041 GB, free: 14.19 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002662/1.192, allocations: 0.9625 MB / 1.042 GB, free: 13.45 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.751e-05/1.192, allocations: 0 / 1.042 GB, free: 13.45 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001354/1.192, allocations: 4 kB / 1.042 GB, free: 13.45 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.48e-05/1.192, allocations: 24 kB / 1.042 GB, free: 13.42 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008432/1.2, allocations: 3.531 MB / 1.045 GB, free: 10.65 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002056/1.202, allocations: 0.7238 MB / 1.046 GB, free: 10.19 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007827/1.203, allocations: 304.4 kB / 1.046 GB, free: 10.02 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 7.676e-05/1.203, allocations: 16.78 kB / 1.046 GB, free: 10 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001274/1.205, allocations: 479.8 kB / 1.047 GB, free: 9.641 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=83): time 4.909e-06/1.205, allocations: 0 / 1.047 GB, free: 9.641 MB / 0.6667 GB Notification: Performance of matching and sorting (n=83): time 0.002127/1.207, allocations: 0.6809 MB / 1.047 GB, free: 9.148 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001308/1.207, allocations: 200.2 kB / 1.047 GB, free: 8.91 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001144/1.208, allocations: 479.4 kB / 1.048 GB, free: 8.559 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 0.0002368/1.208, allocations: 43.94 kB / 1.048 GB, free: 8.516 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005683/1.209, allocations: 497 kB / 1.048 GB, free: 8.148 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003171/1.209, allocations: 218.2 kB / 1.049 GB, free: 7.961 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.607e-05/1.209, allocations: 0 / 1.049 GB, free: 7.961 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0002147/1.21, allocations: 389.2 kB / 1.049 GB, free: 7.605 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007208/1.21, allocations: 251 kB / 1.049 GB, free: 7.469 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009413/1.211, allocations: 499.1 kB / 1.05 GB, free: 7.023 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007657/1.212, allocations: 271.8 kB / 1.05 GB, free: 6.859 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.247e-06/1.212, allocations: 4 kB / 1.05 GB, free: 6.855 MB / 0.6667 GB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002091/1.214, allocations: 0.7486 MB / 1.051 GB, free: 6.297 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008613/1.215, allocations: 1.914 MB / 1.053 GB, free: 4.266 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.257e-05/1.215, allocations: 11.98 kB / 1.053 GB, free: 4.254 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.571e-05/1.215, allocations: 12 kB / 1.053 GB, free: 4.242 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001407/1.217, allocations: 158.5 kB / 1.053 GB, free: 4.094 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.469e-05/1.217, allocations: 15.94 kB / 1.053 GB, free: 4.078 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001272/1.218, allocations: 131.4 kB / 1.053 GB, free: 3.949 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00012/1.218, allocations: 41.98 kB / 1.053 GB, free: 3.918 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.716e-05/1.218, allocations: 9.656 kB / 1.053 GB, free: 3.91 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001813/1.22, allocations: 0.6367 MB / 1.053 GB, free: 3.469 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.13e-05/1.22, allocations: 4 kB / 1.054 GB, free: 3.465 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.362e-05/1.22, allocations: 12 kB / 1.054 GB, free: 3.453 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001178/1.221, allocations: 150.4 kB / 1.054 GB, free: 3.312 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.943e-05/1.221, allocations: 15.92 kB / 1.054 GB, free: 3.297 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001121/1.222, allocations: 111.8 kB / 1.054 GB, free: 3.188 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001/1.222, allocations: 33.88 kB / 1.054 GB, free: 3.164 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.0004044/1.223, allocations: 167.4 kB / 1.054 GB, free: 3 MB / 0.6667 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001862/1.225, allocations: 0.6795 MB / 1.055 GB, free: 2.504 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001898/1.225, allocations: 75.25 kB / 1.055 GB, free: 2.43 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002072/1.227, allocations: 0.7561 MB / 1.055 GB, free: 1.902 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.721e-05/1.227, allocations: 8 kB / 1.055 GB, free: 1.895 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.794e-06/1.227, allocations: 3.938 kB / 1.055 GB, free: 1.891 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.541e-05/1.227, allocations: 7.984 kB / 1.055 GB, free: 1.883 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004393/1.232, allocations: 1.874 MB / 1.057 GB, free: 0.5 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.436e-06/1.232, allocations: 0 / 1.057 GB, free: 0.5 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009783/1.233, allocations: 123.1 kB / 1.057 GB, free: 396 kB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.589e-05/1.233, allocations: 4 kB / 1.057 GB, free: 392 kB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001132/1.233, allocations: 11.98 kB / 1.057 GB, free: 380 kB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.337e-05/1.233, allocations: 11.94 kB / 1.057 GB, free: 368 kB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/1.233, allocations: 0 / 1.057 GB, free: 368 kB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003027/1.236, allocations: 1.275 MB / 1.059 GB, free: 15.42 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002439/1.236, allocations: 150.5 kB / 1.059 GB, free: 15.26 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001816/1.236, allocations: 22.23 kB / 1.059 GB, free: 15.25 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009602/1.237, allocations: 75.92 kB / 1.059 GB, free: 15.17 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000312/1.238, allocations: 102.3 kB / 1.059 GB, free: 15.09 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001021/1.238, allocations: 38.78 kB / 1.059 GB, free: 15.06 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0005726/1.238, allocations: 322.8 kB / 1.059 GB, free: 14.83 MB / 0.6823 GB Notification: Performance of sort global known variables: time 6.21e-07/1.238, allocations: 0 / 1.059 GB, free: 14.83 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.00169/1.24, allocations: 342.6 kB / 1.06 GB, free: 14.5 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.003627/1.244, allocations: 2.213 MB / 1.062 GB, free: 12.64 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.002952/1.247, allocations: 1.088 MB / 1.063 GB, free: 11.92 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 6.332e-06/1.247, allocations: 0 / 1.063 GB, free: 11.92 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.001041/1.248, allocations: 389.1 kB / 1.063 GB, free: 11.68 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001092/1.249, allocations: 119.5 kB / 1.063 GB, free: 11.58 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004587/1.253, allocations: 1.328 MB / 1.065 GB, free: 10.38 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008737/1.254, allocations: 1.059 MB / 1.066 GB, free: 9.289 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.001183/1.256, allocations: 141.2 kB / 1.066 GB, free: 9.148 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008044/1.256, allocations: 385.7 kB / 1.066 GB, free: 9.055 MB / 0.6823 GB Notification: Performance of SimCode: time 1.443e-06/1.256, allocations: 0 / 1.066 GB, free: 9.055 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07733/1.334, allocations: 16.08 MB / 1.082 GB, free: 9.07 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002723/1.334, allocations: 184.8 kB / 1.082 GB, free: 8.875 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.195/4.529, allocations: 0 / 1.082 GB, free: 8.875 MB / 0.698 GB