Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,fileNamePrefix="Buildings_latest_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.501/2.501, allocations: 393.5 MB / 408.4 MB, free: 11.04 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.001521/0.001521, allocations: 183 kB / 0.4901 GB, free: 2.23 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.038/2.038, allocations: 223.1 MB / 0.7992 GB, free: 15.66 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001109/0.001108, allocations: 94.86 kB / 0.9396 GB, free: 2.852 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003958/0.0003956, allocations: 8.172 kB / 1.09 GB, free: 212.8 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.31/0.3104, allocations: 143 MB / 1.229 GB, free: 85.38 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2215/0.5319, allocations: 157.7 MB / 1.383 GB, free: 7.43 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002852/0.5323, allocations: 95.94 kB / 1.383 GB, free: 7.336 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.02452/0.5568, allocations: 8.871 MB / 1.392 GB, free: 14.43 MB / 0.9011 GB Notification: Performance of FrontEnd: time 2.716e-06/0.5569, allocations: 0 / 1.392 GB, free: 14.43 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 4.698e-05/0.5569, allocations: 15.94 kB / 1.392 GB, free: 14.41 MB / 0.9011 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.001625/0.5586, allocations: 0.7995 MB / 1.393 GB, free: 13.56 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 5.082e-05/0.5586, allocations: 8.562 kB / 1.393 GB, free: 13.55 MB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001168/0.5587, allocations: 86.52 kB / 1.393 GB, free: 13.46 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001236/0.5589, allocations: 63.25 kB / 1.393 GB, free: 13.39 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006763/0.5596, allocations: 427.6 kB / 1.393 GB, free: 12.94 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.826e-05/0.5596, allocations: 37 kB / 1.393 GB, free: 12.9 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.721e-05/0.5597, allocations: 48 kB / 1.394 GB, free: 12.85 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001111/0.5608, allocations: 0.5672 MB / 1.394 GB, free: 12.25 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.63e-05/0.5609, allocations: 3.938 kB / 1.394 GB, free: 12.24 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.994e-05/0.5609, allocations: 23.98 kB / 1.394 GB, free: 12.22 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.124e-05/0.5609, allocations: 12 kB / 1.394 GB, free: 12.21 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001066/0.562, allocations: 447.7 kB / 1.395 GB, free: 11.77 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002596/0.5646, allocations: 1.907 MB / 1.396 GB, free: 9.785 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001126/0.5657, allocations: 446.4 kB / 1.397 GB, free: 9.332 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 3.458e-05/0.5658, allocations: 4 kB / 1.397 GB, free: 9.328 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006004/0.5664, allocations: 273.5 kB / 1.397 GB, free: 9.039 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=35): time 2.435e-06/0.5664, allocations: 0 / 1.397 GB, free: 9.039 MB / 0.9011 GB Notification: Performance of matching and sorting (n=35): time 0.001431/0.5679, allocations: 0.5555 MB / 1.398 GB, free: 8.48 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.344e-05/0.568, allocations: 144.4 kB / 1.398 GB, free: 8.309 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004302/0.5684, allocations: 368.6 kB / 1.398 GB, free: 7.941 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 6.34e-05/0.5685, allocations: 37.7 kB / 1.398 GB, free: 7.898 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002125/0.5687, allocations: 256.2 kB / 1.398 GB, free: 7.641 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 8.828e-05/0.5688, allocations: 90.77 kB / 1.398 GB, free: 7.551 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.691e-05/0.5688, allocations: 12 kB / 1.398 GB, free: 7.539 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001755/0.569, allocations: 350.8 kB / 1.399 GB, free: 7.188 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004471/0.5695, allocations: 185 kB / 1.399 GB, free: 7.004 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005517/0.57, allocations: 306.7 kB / 1.399 GB, free: 6.656 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004737/0.5705, allocations: 220 kB / 1.399 GB, free: 6.438 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.5705, allocations: 0 / 1.399 GB, free: 6.438 MB / 0.9011 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001177/0.5717, allocations: 0.5583 MB / 1.4 GB, free: 5.867 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 4.199e-05/0.5718, allocations: 30.64 kB / 1.4 GB, free: 5.832 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.932e-05/0.5718, allocations: 8 kB / 1.4 GB, free: 5.824 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.245e-05/0.5718, allocations: 8 kB / 1.4 GB, free: 5.816 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003491/0.5722, allocations: 83.81 kB / 1.4 GB, free: 5.734 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.228e-05/0.5722, allocations: 4 kB / 1.4 GB, free: 5.73 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004074/0.5726, allocations: 95.59 kB / 1.4 GB, free: 5.637 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.911e-05/0.5727, allocations: 16 kB / 1.4 GB, free: 5.621 MB / 0.9011 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 35 ($PRE.preHeatCoil.toOn.enableFire,$PRE.preHeatCoil.toOff.enableFire,$PRE.preHeatCoil.toOn.t_start,preHeatCoil.toOn.t_start,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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 57 * 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.0002852/0.5729, allocations: 214.5 kB / 1.4 GB, free: 5.402 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.861e-05/0.573, allocations: 39.53 kB / 1.401 GB, free: 5.363 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00102/0.574, allocations: 429.7 kB / 1.401 GB, free: 4.938 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.544e-06/0.5741, allocations: 7.938 kB / 1.401 GB, free: 4.93 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/0.5741, allocations: 8 kB / 1.401 GB, free: 4.922 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.855e-06/0.5741, allocations: 3.984 kB / 1.401 GB, free: 4.918 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001827/0.5759, allocations: 1.037 MB / 1.402 GB, free: 3.82 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.182e-06/0.5759, allocations: 4 kB / 1.402 GB, free: 3.816 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003174/0.5763, allocations: 59.83 kB / 1.402 GB, free: 3.758 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.773e-06/0.5763, allocations: 4 kB / 1.402 GB, free: 3.754 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.237e-05/0.5763, allocations: 8 kB / 1.402 GB, free: 3.746 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.047e-06/0.5763, allocations: 7.953 kB / 1.402 GB, free: 3.738 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.5763, allocations: 4.031 kB / 1.402 GB, free: 3.734 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001508/0.5779, allocations: 0.7491 MB / 1.403 GB, free: 2.949 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001884/0.5781, allocations: 152.6 kB / 1.403 GB, free: 2.781 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.359e-05/0.5781, allocations: 19.98 kB / 1.403 GB, free: 2.762 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003744/0.5785, allocations: 47.95 kB / 1.403 GB, free: 2.715 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001335/0.5787, allocations: 51.92 kB / 1.403 GB, free: 2.664 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.653e-05/0.5787, allocations: 12 kB / 1.403 GB, free: 2.652 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0003055/0.579, allocations: 271.2 kB / 1.403 GB, free: 2.387 MB / 0.9011 GB Notification: Performance of sort global known variables: time 1.51e-07/0.579, allocations: 0 / 1.403 GB, free: 2.387 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0004445/0.5795, allocations: 91.84 kB / 1.403 GB, free: 2.297 MB / 0.9011 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (preHeatCoil.preHeaCoiCon.I.y) * Number of discrete variables: 21 (preHeatCoil.toOn.t_start,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: 5 (TMix.count,preHeatCoil.pumOff.newActive,preHeatCoil.pumOn.newActive,preHeatCoil.preHeaOn.y,preHeatCoil.toOn.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.001974/0.5814, allocations: 1.447 MB / 1.405 GB, free: 0.8125 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.001067/0.5825, allocations: 496 kB / 1.405 GB, free: 324 kB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.5825, allocations: 0 / 1.405 GB, free: 324 kB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0005034/0.583, allocations: 216.2 kB / 1.405 GB, free: 108 kB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005529/0.5836, allocations: 76.97 kB / 1.406 GB, free: 36 kB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5673/1.151, allocations: 4.42 MB / 1.41 GB, free: 166.3 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004285/1.151, allocations: 0.8416 MB / 1.411 GB, free: 165.6 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0002985/1.152, allocations: 53.28 kB / 1.411 GB, free: 165.6 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002606/1.152, allocations: 157.6 kB / 1.411 GB, free: 165.5 MB / 0.9011 GB Notification: Performance of SimCode: time 1.062e-06/1.152, allocations: 0 / 1.411 GB, free: 165.5 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02706/1.179, allocations: 8.962 MB / 1.42 GB, free: 165.1 MB / 0.9011 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002242/1.179, allocations: 209.4 kB / 1.42 GB, free: 164.9 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.323/3.503, allocations: 0 / 1.42 GB, free: 164.9 MB / 0.9011 GB (rm -f Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; mkfifo Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe >> ../files/Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil_res.mat --tempDir=temp_Buildings_latest_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil.fmu > Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil_res.mat does not exist to compare? outputFormat=mat