Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.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.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,fileNamePrefix="Buildings_7_0_0_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil",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.291/2.291, allocations: 248.7 MB / 256.2 MB, free: 7.012 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.001556/0.001556, allocations: 177.9 kB / 315.4 MB, free: 3.996 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.132/2.132, allocations: 205.3 MB / 0.5662 GB, free: 0.6094 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.001199/0.001199, allocations: 90.52 kB / 0.6704 GB, free: 5.812 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.875e-05/2.877e-05, allocations: 3.984 kB / 0.7803 GB, free: 103.3 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2079/0.2079, allocations: 106.3 MB / 0.8841 GB, free: 12.98 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8695/1.077, allocations: 139.5 MB / 1.02 GB, free: 15.38 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003218/1.078, allocations: 92.88 kB / 1.02 GB, free: 15.33 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.03793/1.116, allocations: 8.712 MB / 1.029 GB, free: 8.113 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.623e-06/1.116, allocations: 0 / 1.029 GB, free: 8.113 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 6.353e-05/1.116, allocations: 19.94 kB / 1.029 GB, free: 8.094 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: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.002133/1.118, allocations: 0.7296 MB / 1.03 GB, free: 7.352 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.986e-05/1.118, allocations: 16.02 kB / 1.03 GB, free: 7.336 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002492/1.118, allocations: 63.25 kB / 1.03 GB, free: 7.273 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009557/1.119, allocations: 419.3 kB / 1.03 GB, free: 6.895 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.615e-05/1.119, allocations: 23.8 kB / 1.03 GB, free: 6.875 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000117/1.12, allocations: 28 kB / 1.03 GB, free: 6.848 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009303/1.121, allocations: 303.8 kB / 1.03 GB, free: 6.68 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001128/1.122, allocations: 464.5 kB / 1.031 GB, free: 6.305 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.311e-05/1.122, allocations: 3.938 kB / 1.031 GB, free: 6.301 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.857e-05/1.122, allocations: 7.984 kB / 1.031 GB, free: 6.293 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.841e-05/1.122, allocations: 12 kB / 1.031 GB, free: 6.281 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003719/1.126, allocations: 1.791 MB / 1.033 GB, free: 4.77 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009027/1.127, allocations: 272.9 kB / 1.033 GB, free: 4.594 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003041/1.127, allocations: 124.6 kB / 1.033 GB, free: 4.52 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 4.708e-05/1.127, allocations: 11.98 kB / 1.033 GB, free: 4.508 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004608/1.127, allocations: 174.8 kB / 1.033 GB, free: 4.367 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=34): time 3.637e-06/1.127, allocations: 0 / 1.033 GB, free: 4.367 MB / 0.6511 GB Notification: Performance of matching and sorting (n=34): time 0.0008137/1.128, allocations: 269.1 kB / 1.034 GB, free: 4.164 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.785e-05/1.128, allocations: 109.8 kB / 1.034 GB, free: 4.035 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005084/1.129, allocations: 292.1 kB / 1.034 GB, free: 3.809 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 8.922e-05/1.129, allocations: 33.39 kB / 1.034 GB, free: 3.773 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002621/1.129, allocations: 255.2 kB / 1.034 GB, free: 3.57 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.000128/1.129, allocations: 100.8 kB / 1.034 GB, free: 3.484 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.257e-05/1.129, allocations: 0 / 1.034 GB, free: 3.484 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001663/1.13, allocations: 351.4 kB / 1.035 GB, free: 3.148 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000324/1.13, allocations: 115.7 kB / 1.035 GB, free: 3.086 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004241/1.13, allocations: 229.5 kB / 1.035 GB, free: 2.871 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003555/1.131, allocations: 124.7 kB / 1.035 GB, free: 2.793 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.15e-06/1.131, allocations: 0 / 1.035 GB, free: 2.793 MB / 0.6511 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001044/1.132, allocations: 379.6 kB / 1.035 GB, free: 2.508 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 5.381e-05/1.132, allocations: 37.77 kB / 1.035 GB, free: 2.465 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.43e-05/1.132, allocations: 4 kB / 1.035 GB, free: 2.461 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.897e-05/1.132, allocations: 4 kB / 1.035 GB, free: 2.457 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006532/1.133, allocations: 82.75 kB / 1.036 GB, free: 2.379 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.564e-05/1.133, allocations: 8 kB / 1.036 GB, free: 2.371 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007273/1.133, allocations: 63.73 kB / 1.036 GB, free: 2.309 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.682e-05/1.133, allocations: 18.81 kB / 1.036 GB, free: 2.293 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 33 ($PRE.preHeatCoil.toOn.enableFire,$PRE.preHeatCoil.toOff.enableFire,preHeatCoil.stateGraphRoot.resume,preHeatCoil.stateGraphRoot.suspend,$whenCondition2,$whenCondition1,$PRE.TMix.T_start,TMix.T_start,$PRE.TMix.count,TMix.count,$PRE.preHeatCoil.preHeaOn.y,preHeatCoil.preHeaOn.y,$PRE.preHeatCoil.pumOff.localActive,preHeatCoil.pumOff.localActive,$PRE.preHeatCoil.pumOff.newActive,preHeatCoil.pumOff.newActive,$PRE.preHeatCoil.pumOff.oldActive,preHeatCoil.pumOff.oldActive,preHeatCoil.pumOff.active,preHeatCoil.toOn.enableFire,preHeatCoil.stateGraphRoot.activeSteps,$PRE.preHeatCoil.pumOn.localActive,preHeatCoil.pumOn.localActive,$PRE.preHeatCoil.pumOn.newActive,preHeatCoil.pumOn.newActive,$PRE.preHeatCoil.pumOn.oldActive,preHeatCoil.pumOn.oldActive,preHeatCoil.pumOn.active,preHeatCoil.toOff.enableFire,preHeatCoil.toOff.fire,$PRE.preHeatCoil.toOff.t_start,preHeatCoil.toOff.t_start,preHeatCoil.preHeaCoiCon.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 1 * 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.0002128/1.134, allocations: 148.1 kB / 1.036 GB, free: 2.148 MB / 0.6511 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007711/1.134, allocations: 269.1 kB / 1.036 GB, free: 1.941 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.82e-05/1.135, allocations: 35.53 kB / 1.036 GB, free: 1.906 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008602/1.135, allocations: 303.9 kB / 1.036 GB, free: 1.684 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.598e-06/1.135, allocations: 4 kB / 1.036 GB, free: 1.68 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/1.135, allocations: 0 / 1.036 GB, free: 1.68 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.344e-05/1.136, allocations: 7.938 kB / 1.036 GB, free: 1.672 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001851/1.137, allocations: 0.82 MB / 1.037 GB, free: 1.012 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.5e-06/1.137, allocations: 4 kB / 1.037 GB, free: 1.008 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005346/1.138, allocations: 59.52 kB / 1.037 GB, free: 0.9531 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.089e-05/1.138, allocations: 4 kB / 1.037 GB, free: 0.9492 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.027e-05/1.138, allocations: 3.984 kB / 1.037 GB, free: 0.9453 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.414e-06/1.138, allocations: 3.953 kB / 1.037 GB, free: 0.9414 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/1.138, allocations: 8.031 kB / 1.037 GB, free: 0.9336 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001213/1.139, allocations: 0.5322 MB / 1.038 GB, free: 0.5195 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002629/1.14, allocations: 150.8 kB / 1.038 GB, free: 384 kB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.943e-05/1.14, allocations: 11.89 kB / 1.038 GB, free: 372 kB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006475/1.14, allocations: 55.19 kB / 1.038 GB, free: 320 kB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001724/1.141, allocations: 38.5 kB / 1.038 GB, free: 288 kB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.391e-05/1.141, allocations: 15.05 kB / 1.038 GB, free: 276 kB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0003288/1.141, allocations: 210 kB / 1.038 GB, free: 116 kB / 0.6511 GB Notification: Performance of sort global known variables: time 4.21e-07/1.141, allocations: 4 kB / 1.038 GB, free: 112 kB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0006768/1.142, allocations: 75.84 kB / 1.038 GB, free: 36 kB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (preHeatCoil.preHeaCoiCon.I.y) * Number of discrete variables: 20 (preHeatCoil.toOff.enableFire,preHeatCoil.pumOn.localActive,preHeatCoil.pumOff.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,TMix.T_start,TMix.count,preHeatCoil.preHeaOn.y,preHeatCoil.pumOff.newActive,preHeatCoil.pumOff.oldActive,preHeatCoil.pumOff.active,preHeatCoil.toOn.enableFire,preHeatCoil.stateGraphRoot.activeSteps,preHeatCoil.pumOn.newActive,preHeatCoil.pumOn.oldActive,preHeatCoil.pumOn.active,preHeatCoil.toOff.fire,preHeatCoil.toOff.t_start) * Number of discrete states: 4 (TMix.count,preHeatCoil.pumOff.newActive,preHeatCoil.pumOn.newActive,preHeatCoil.preHeaOn.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.001693/1.143, allocations: 1.174 MB / 1.039 GB, free: 14.97 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.0008815/1.144, allocations: 352.4 kB / 1.04 GB, free: 14.71 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 5.6e-06/1.144, allocations: 0 / 1.04 GB, free: 14.71 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0003783/1.145, allocations: 148.1 kB / 1.04 GB, free: 14.62 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007232/1.145, allocations: 72.83 kB / 1.04 GB, free: 14.57 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002111/1.148, allocations: 0.5815 MB / 1.041 GB, free: 14.01 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005177/1.148, allocations: 0.8359 MB / 1.041 GB, free: 13.15 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.0003937/1.149, allocations: 51.25 kB / 1.041 GB, free: 13.1 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00035/1.149, allocations: 158.6 kB / 1.042 GB, free: 13.05 MB / 0.6667 GB Notification: Performance of SimCode: time 1.593e-06/1.149, allocations: 0 / 1.042 GB, free: 13.05 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05443/1.203, allocations: 7.779 MB / 1.049 GB, free: 5.312 MB / 0.6667 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003248/1.204, allocations: 159.8 kB / 1.049 GB, free: 5.121 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.61/3.814, allocations: 0 / 1.049 GB, free: 5.121 MB / 0.6667 GB