Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,fileNamePrefix="Buildings_9_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.197/2.197, allocations: 390.3 MB / 405.3 MB, free: 13.45 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.001483/0.001483, allocations: 167.1 kB / 498.1 MB, free: 5.73 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.377/1.377, allocations: 223.2 MB / 0.7948 GB, free: 17.99 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.0008838/0.0008839, allocations: 102.8 kB / 0.9346 GB, free: 6.23 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004281/0.0004281, allocations: 12.25 kB / 1.084 GB, free: 221.1 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2375/0.2379, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1779/0.4158, allocations: 157 MB / 1.376 GB, free: 5.062 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002785/0.4162, allocations: 91.94 kB / 1.376 GB, free: 4.973 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.02342/0.4396, allocations: 8.877 MB / 1.385 GB, free: 12.05 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.633e-06/0.4396, allocations: 0 / 1.385 GB, free: 12.05 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 3.646e-05/0.4397, allocations: 12 kB / 1.385 GB, free: 12.04 MB / 0.8855 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.00151/0.4412, allocations: 0.7999 MB / 1.386 GB, free: 11.19 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.141e-05/0.4412, allocations: 12.03 kB / 1.386 GB, free: 11.18 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001125/0.4414, allocations: 82.52 kB / 1.386 GB, free: 11.09 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001175/0.4415, allocations: 59.34 kB / 1.386 GB, free: 11.03 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006272/0.4421, allocations: 419.6 kB / 1.386 GB, free: 10.58 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.402e-05/0.4422, allocations: 37 kB / 1.386 GB, free: 10.54 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.478e-05/0.4423, allocations: 52 kB / 1.386 GB, free: 10.49 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001075/0.4433, allocations: 0.5672 MB / 1.387 GB, free: 9.891 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.314e-05/0.4434, allocations: 0 / 1.387 GB, free: 9.891 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.052e-05/0.4434, allocations: 24 kB / 1.387 GB, free: 9.867 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.195e-05/0.4434, allocations: 15.94 kB / 1.387 GB, free: 9.852 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001085/0.4445, allocations: 455.6 kB / 1.387 GB, free: 9.406 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002434/0.447, allocations: 1.903 MB / 1.389 GB, free: 7.426 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001099/0.4481, allocations: 442.7 kB / 1.39 GB, free: 6.977 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 3.104e-05/0.4481, allocations: 11.94 kB / 1.39 GB, free: 6.965 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005878/0.4487, allocations: 269.6 kB / 1.39 GB, free: 6.68 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=35): time 1.804e-06/0.4487, allocations: 3.938 kB / 1.39 GB, free: 6.676 MB / 0.8855 GB Notification: Performance of matching and sorting (n=35): time 0.001391/0.4501, allocations: 0.5514 MB / 1.391 GB, free: 6.121 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.393e-05/0.4502, allocations: 148.6 kB / 1.391 GB, free: 5.945 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004025/0.4506, allocations: 360.6 kB / 1.391 GB, free: 5.582 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 5.822e-05/0.4507, allocations: 41.7 kB / 1.391 GB, free: 5.535 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001813/0.4509, allocations: 244.3 kB / 1.391 GB, free: 5.289 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 8.977e-05/0.451, allocations: 102.7 kB / 1.391 GB, free: 5.188 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.355e-05/0.451, allocations: 8 kB / 1.391 GB, free: 5.18 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001466/0.4512, allocations: 354.8 kB / 1.392 GB, free: 4.824 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004531/0.4516, allocations: 181 kB / 1.392 GB, free: 4.648 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005661/0.4522, allocations: 302.7 kB / 1.392 GB, free: 4.301 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004802/0.4527, allocations: 211.5 kB / 1.392 GB, free: 4.09 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.4527, allocations: 0 / 1.392 GB, free: 4.09 MB / 0.8855 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001137/0.4539, allocations: 0.5657 MB / 1.393 GB, free: 3.512 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 3.518e-05/0.4539, allocations: 37.94 kB / 1.393 GB, free: 3.469 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.642e-06/0.4539, allocations: 4 kB / 1.393 GB, free: 3.465 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.722e-05/0.454, allocations: 8 kB / 1.393 GB, free: 3.457 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003528/0.4543, allocations: 83.81 kB / 1.393 GB, free: 3.375 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.068e-05/0.4543, allocations: 8 kB / 1.393 GB, free: 3.367 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004195/0.4548, allocations: 87.53 kB / 1.393 GB, free: 3.281 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.296e-05/0.4548, allocations: 16 kB / 1.393 GB, free: 3.266 MB / 0.8855 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.0002365/0.4551, allocations: 209.6 kB / 1.393 GB, free: 3.055 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.924e-05/0.4551, allocations: 43.53 kB / 1.393 GB, free: 3.012 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001034/0.4562, allocations: 437.5 kB / 1.394 GB, free: 2.574 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/0.4562, allocations: 4 kB / 1.394 GB, free: 2.57 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.4562, allocations: 0 / 1.394 GB, free: 2.57 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.638e-06/0.4562, allocations: 11.97 kB / 1.394 GB, free: 2.559 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001698/0.4579, allocations: 1.033 MB / 1.395 GB, free: 1.465 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.977e-06/0.4579, allocations: 3.984 kB / 1.395 GB, free: 1.461 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003048/0.4582, allocations: 59.98 kB / 1.395 GB, free: 1.402 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.311e-05/0.4583, allocations: 7.938 kB / 1.395 GB, free: 1.395 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.013e-05/0.4583, allocations: 8 kB / 1.395 GB, free: 1.387 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.4583, allocations: 3.953 kB / 1.395 GB, free: 1.383 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.4583, allocations: 0 / 1.395 GB, free: 1.383 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001459/0.4598, allocations: 0.7455 MB / 1.396 GB, free: 0.6016 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001719/0.46, allocations: 152.6 kB / 1.396 GB, free: 444 kB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.058e-05/0.46, allocations: 8 kB / 1.396 GB, free: 436 kB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000392/0.4604, allocations: 60 kB / 1.396 GB, free: 376 kB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001122/0.4606, allocations: 51.86 kB / 1.396 GB, free: 324 kB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.844e-05/0.4606, allocations: 12 kB / 1.396 GB, free: 312 kB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.000278/0.4609, allocations: 267.2 kB / 1.396 GB, free: 44 kB / 0.8855 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4609, allocations: 4 kB / 1.396 GB, free: 40 kB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0004185/0.4613, allocations: 99.83 kB / 1.396 GB, free: 15.94 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.001842/0.4632, allocations: 1.456 MB / 1.398 GB, free: 14.45 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.001046/0.4642, allocations: 487.9 kB / 1.398 GB, free: 13.96 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 4.499e-06/0.4642, allocations: 4 kB / 1.398 GB, free: 13.96 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.000495/0.4647, allocations: 224 kB / 1.398 GB, free: 13.74 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000427/0.4652, allocations: 69.52 kB / 1.398 GB, free: 13.67 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005059/0.4702, allocations: 4.425 MB / 1.403 GB, free: 9.145 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003906/0.4706, allocations: 0.8357 MB / 1.404 GB, free: 8.285 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0002335/0.4709, allocations: 59.38 kB / 1.404 GB, free: 8.227 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002472/0.4711, allocations: 155.4 kB / 1.404 GB, free: 8.074 MB / 0.9011 GB Notification: Performance of SimCode: time 3.11e-07/0.4711, allocations: 4 kB / 1.404 GB, free: 8.07 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02181/0.493, allocations: 8.951 MB / 1.413 GB, free: 15.32 MB / 0.9167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001629/0.4931, allocations: 189.8 kB / 1.413 GB, free: 15.08 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.188/2.681, allocations: 0 / 1.413 GB, free: 15.08 MB / 0.9167 GB (rm -f Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; mkfifo Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe >> ../files/Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil_res.mat --tempDir=temp_Buildings_9_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil.fmu > Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil_res.mat does not exist to compare? outputFormat=mat