Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.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.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,fileNamePrefix="Buildings_maint_7_0_x_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.3-maint.7.0.x/package.mo): time 1.412/1.412, allocations: 249.5 MB / 257 MB, free: 6.859 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.0009461/0.0009459, allocations: 183.7 kB / 316.3 MB, free: 3.238 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.534/1.534, allocations: 205.3 MB / 0.5671 GB, free: 15.82 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.0008427/0.0008427, allocations: 85.47 kB / 0.6714 GB, free: 4.941 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.935e-05/1.946e-05, allocations: 0 / 0.7815 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2216/0.2217, allocations: 106.3 MB / 0.8853 GB, free: 12.2 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8074/1.029, allocations: 139.7 MB / 1.022 GB, free: 13.78 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002849/1.03, allocations: 90.19 kB / 1.022 GB, free: 13.73 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.02243/1.052, allocations: 8.704 MB / 1.03 GB, free: 6.527 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.603e-06/1.052, allocations: 0 / 1.03 GB, free: 6.527 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 4.453e-05/1.052, allocations: 12.88 kB / 1.03 GB, free: 6.516 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.001428/1.054, allocations: 0.7347 MB / 1.031 GB, free: 5.766 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.209e-05/1.054, allocations: 12.03 kB / 1.031 GB, free: 5.754 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001341/1.054, allocations: 63.23 kB / 1.031 GB, free: 5.691 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006289/1.054, allocations: 417.7 kB / 1.032 GB, free: 5.316 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.459e-05/1.054, allocations: 19.98 kB / 1.032 GB, free: 5.297 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.239e-05/1.055, allocations: 31.94 kB / 1.032 GB, free: 5.266 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005817/1.055, allocations: 309.3 kB / 1.032 GB, free: 5.094 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007453/1.056, allocations: 460.7 kB / 1.032 GB, free: 4.727 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.383e-05/1.056, allocations: 0 / 1.032 GB, free: 4.727 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.843e-05/1.056, allocations: 4 kB / 1.032 GB, free: 4.723 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.441e-05/1.056, allocations: 15.98 kB / 1.032 GB, free: 4.707 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002194/1.058, allocations: 1.791 MB / 1.034 GB, free: 3.195 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005638/1.059, allocations: 281.9 kB / 1.034 GB, free: 3.012 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001867/1.059, allocations: 114.6 kB / 1.034 GB, free: 2.945 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 3.765e-05/1.059, allocations: 4 kB / 1.034 GB, free: 2.941 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003418/1.059, allocations: 187 kB / 1.035 GB, free: 2.793 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=34): time 2.194e-06/1.059, allocations: 0 / 1.035 GB, free: 2.793 MB / 0.6511 GB Notification: Performance of matching and sorting (n=34): time 0.0005262/1.06, allocations: 268.1 kB / 1.035 GB, free: 2.59 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.868e-05/1.06, allocations: 110.8 kB / 1.035 GB, free: 2.457 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003319/1.06, allocations: 297.3 kB / 1.035 GB, free: 2.227 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 4.934e-05/1.06, allocations: 35.02 kB / 1.035 GB, free: 2.191 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001733/1.061, allocations: 258.9 kB / 1.036 GB, free: 1.984 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 8.183e-05/1.061, allocations: 87.28 kB / 1.036 GB, free: 1.91 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.933e-05/1.061, allocations: 0 / 1.036 GB, free: 1.91 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001508/1.061, allocations: 352.1 kB / 1.036 GB, free: 1.574 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001801/1.061, allocations: 119.9 kB / 1.036 GB, free: 1.508 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002696/1.061, allocations: 225.5 kB / 1.036 GB, free: 1.297 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001961/1.061, allocations: 124.4 kB / 1.036 GB, free: 1.219 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/1.061, allocations: 0 / 1.036 GB, free: 1.219 MB / 0.6511 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0005828/1.062, allocations: 385.6 kB / 1.037 GB, free: 0.9258 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 4.827e-05/1.062, allocations: 33.7 kB / 1.037 GB, free: 0.8867 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/1.062, allocations: 4 kB / 1.037 GB, free: 0.8828 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.933e-05/1.062, allocations: 4 kB / 1.037 GB, free: 0.8789 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003729/1.063, allocations: 87.62 kB / 1.037 GB, free: 0.7969 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.122e-05/1.063, allocations: 7.938 kB / 1.037 GB, free: 0.7891 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003764/1.063, allocations: 55.8 kB / 1.037 GB, free: 0.7344 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.584e-05/1.063, allocations: 23.75 kB / 1.037 GB, free: 0.7148 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.0001426/1.063, allocations: 140.8 kB / 1.037 GB, free: 0.5742 MB / 0.6511 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003994/1.064, allocations: 275.6 kB / 1.037 GB, free: 368 kB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.761e-05/1.064, allocations: 39.53 kB / 1.037 GB, free: 328 kB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000563/1.064, allocations: 306.2 kB / 1.038 GB, free: 100 kB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.64e-06/1.064, allocations: 4 kB / 1.038 GB, free: 96 kB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/1.064, allocations: 4 kB / 1.038 GB, free: 92 kB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.855e-06/1.064, allocations: 3.984 kB / 1.038 GB, free: 88 kB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001132/1.065, allocations: 0.8245 MB / 1.039 GB, free: 15.42 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/1.065, allocations: 0 / 1.039 GB, free: 15.42 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002983/1.066, allocations: 59.92 kB / 1.039 GB, free: 15.36 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.154e-06/1.066, allocations: 4 kB / 1.039 GB, free: 15.36 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.569e-05/1.066, allocations: 7.484 kB / 1.039 GB, free: 15.36 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.871e-06/1.066, allocations: 8 kB / 1.039 GB, free: 15.35 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.909e-06/1.066, allocations: 3.953 kB / 1.039 GB, free: 15.34 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007068/1.066, allocations: 0.5329 MB / 1.039 GB, free: 14.93 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001398/1.067, allocations: 146.7 kB / 1.039 GB, free: 14.79 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.4e-05/1.067, allocations: 3.875 kB / 1.039 GB, free: 14.79 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003482/1.067, allocations: 51.89 kB / 1.039 GB, free: 14.73 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001152/1.067, allocations: 51.12 kB / 1.039 GB, free: 14.7 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.869e-05/1.067, allocations: 11.98 kB / 1.039 GB, free: 14.68 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.0002/1.067, allocations: 206.6 kB / 1.04 GB, free: 14.53 MB / 0.6667 GB Notification: Performance of sort global known variables: time 2.51e-07/1.067, allocations: 0 / 1.04 GB, free: 14.53 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.0004342/1.068, allocations: 83.75 kB / 1.04 GB, free: 14.45 MB / 0.6667 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.001105/1.069, allocations: 1.178 MB / 1.041 GB, free: 13.39 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.0005287/1.069, allocations: 348 kB / 1.041 GB, free: 13.13 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/1.07, allocations: 0 / 1.041 GB, free: 13.13 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0002197/1.07, allocations: 144.8 kB / 1.041 GB, free: 13.04 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004593/1.07, allocations: 67.83 kB / 1.041 GB, free: 12.99 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001503/1.072, allocations: 0.5775 MB / 1.042 GB, free: 12.44 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004122/1.072, allocations: 0.8512 MB / 1.043 GB, free: 11.56 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.0002169/1.072, allocations: 43.27 kB / 1.043 GB, free: 11.52 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002218/1.073, allocations: 159.2 kB / 1.043 GB, free: 11.47 MB / 0.6667 GB Notification: Performance of SimCode: time 3e-07/1.073, allocations: 0 / 1.043 GB, free: 11.47 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03018/1.103, allocations: 7.784 MB / 1.051 GB, free: 3.742 MB / 0.6667 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002028/1.103, allocations: 163.2 kB / 1.051 GB, free: 3.555 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.008/3.111, allocations: 0 / 1.051 GB, free: 3.555 MB / 0.6667 GB (rm -f Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil.fmu > Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe 2>&1)