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.296/2.296, allocations: 387.4 MB / 394.9 MB, free: 13.42 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.001093/0.001093, allocations: 188.7 kB / 487.4 MB, free: 5.059 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.478/1.478, allocations: 221.5 MB / 0.7824 GB, free: 0.918 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009041/0.0009038, allocations: 104.4 kB / 0.9219 GB, free: 2.152 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.435e-05/2.437e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2592/0.2593, allocations: 142.4 MB / 1.206 GB, free: 43.85 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9809/1.24, allocations: 156.2 MB / 1.359 GB, free: 18.06 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003435/1.241, allocations: 89.2 kB / 1.359 GB, free: 18.06 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.02215/1.263, allocations: 8.734 MB / 1.367 GB, free: 33.21 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.763e-06/1.263, allocations: 4 kB / 1.367 GB, free: 33.2 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.02e-05/1.263, allocations: 15.53 kB / 1.367 GB, free: 33.2 MB / 0.8386 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.001291/1.264, allocations: 0.752 MB / 1.368 GB, free: 32.68 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.609e-05/1.264, allocations: 7.688 kB / 1.368 GB, free: 32.68 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001154/1.264, allocations: 62.34 kB / 1.368 GB, free: 32.65 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005359/1.265, allocations: 417.3 kB / 1.368 GB, free: 32.4 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.695e-05/1.265, allocations: 15.38 kB / 1.368 GB, free: 32.4 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.503e-05/1.265, allocations: 34.06 kB / 1.368 GB, free: 32.4 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005475/1.266, allocations: 306.7 kB / 1.369 GB, free: 32.4 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006677/1.266, allocations: 462.1 kB / 1.369 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.534e-05/1.266, allocations: 3.984 kB / 1.369 GB, free: 32.26 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.016e-05/1.266, allocations: 0 / 1.369 GB, free: 32.26 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.639e-05/1.266, allocations: 11.69 kB / 1.369 GB, free: 32.26 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002121/1.269, allocations: 1.805 MB / 1.371 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005153/1.269, allocations: 296.4 kB / 1.371 GB, free: 31.29 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001765/1.269, allocations: 129.2 kB / 1.371 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 4.111e-05/1.269, allocations: 7.844 kB / 1.371 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003251/1.27, allocations: 210.1 kB / 1.372 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=35): time 1.703e-06/1.27, allocations: 0 / 1.372 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of matching and sorting (n=35): time 0.0004889/1.27, allocations: 280.3 kB / 1.372 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.268e-05/1.27, allocations: 139.8 kB / 1.372 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003109/1.271, allocations: 295.2 kB / 1.372 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.234e-05/1.271, allocations: 33.02 kB / 1.372 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001567/1.271, allocations: 255.3 kB / 1.373 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 7.008e-05/1.271, allocations: 96.06 kB / 1.373 GB, free: 30.62 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.084e-05/1.271, allocations: 0 / 1.373 GB, free: 30.62 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001402/1.271, allocations: 350.5 kB / 1.373 GB, free: 30.31 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001756/1.271, allocations: 117.8 kB / 1.373 GB, free: 30.31 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002322/1.271, allocations: 231.4 kB / 1.373 GB, free: 30.17 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001853/1.272, allocations: 120.5 kB / 1.373 GB, free: 30.16 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.508e-06/1.272, allocations: 3.75 kB / 1.373 GB, free: 30.16 MB / 0.8386 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.000537/1.272, allocations: 390.4 kB / 1.374 GB, free: 30.08 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.559e-05/1.272, allocations: 36.36 kB / 1.374 GB, free: 30.05 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/1.272, allocations: 3.688 kB / 1.374 GB, free: 30.05 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.902e-05/1.272, allocations: 3.531 kB / 1.374 GB, free: 30.05 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003331/1.273, allocations: 82.33 kB / 1.374 GB, free: 30.05 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.038e-05/1.273, allocations: 18.84 kB / 1.374 GB, free: 30.04 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000372/1.273, allocations: 65.59 kB / 1.374 GB, free: 30.02 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.144e-05/1.273, allocations: 13.56 kB / 1.374 GB, free: 30.02 MB / 0.8386 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 () * 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.0001517/1.273, allocations: 151.1 kB / 1.374 GB, free: 29.89 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003764/1.274, allocations: 265.5 kB / 1.374 GB, free: 29.84 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.297e-05/1.274, allocations: 41.47 kB / 1.374 GB, free: 29.82 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005002/1.274, allocations: 298.3 kB / 1.375 GB, free: 29.76 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/1.274, allocations: 3.969 kB / 1.375 GB, free: 29.76 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/1.274, allocations: 4 kB / 1.375 GB, free: 29.76 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-06/1.274, allocations: 3.875 kB / 1.375 GB, free: 29.76 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001039/1.275, allocations: 0.8393 MB / 1.376 GB, free: 29.45 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.484e-06/1.275, allocations: 0 / 1.376 GB, free: 29.45 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002781/1.276, allocations: 60.19 kB / 1.376 GB, free: 29.45 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.46e-06/1.276, allocations: 7.406 kB / 1.376 GB, free: 29.45 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.481e-05/1.276, allocations: 3.844 kB / 1.376 GB, free: 29.45 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.394e-06/1.276, allocations: 0 / 1.376 GB, free: 29.45 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.107e-06/1.276, allocations: 7.609 kB / 1.376 GB, free: 29.44 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006512/1.276, allocations: 0.5525 MB / 1.376 GB, free: 29.23 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001205/1.276, allocations: 150.6 kB / 1.376 GB, free: 29.11 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.972e-05/1.276, allocations: 14.61 kB / 1.376 GB, free: 29.11 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003423/1.277, allocations: 47.94 kB / 1.376 GB, free: 29.11 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001143/1.277, allocations: 47.78 kB / 1.376 GB, free: 29.11 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.617e-05/1.277, allocations: 10.19 kB / 1.376 GB, free: 29.11 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.000175/1.277, allocations: 206.1 kB / 1.377 GB, free: 29.03 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.277, allocations: 0 / 1.377 GB, free: 29.03 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0004115/1.278, allocations: 85.12 kB / 1.377 GB, free: 29.01 MB / 0.8386 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) * 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.001051/1.279, allocations: 1.255 MB / 1.378 GB, free: 28.14 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0004728/1.279, allocations: 354.4 kB / 1.378 GB, free: 28.06 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/1.279, allocations: 8 kB / 1.378 GB, free: 28.06 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.000215/1.279, allocations: 144.4 kB / 1.378 GB, free: 28.05 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004477/1.28, allocations: 70.47 kB / 1.379 GB, free: 28.04 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001275/1.281, allocations: 0.6035 MB / 1.379 GB, free: 27.77 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003676/1.281, allocations: 0.8388 MB / 1.38 GB, free: 27.07 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0002043/1.282, allocations: 51.36 kB / 1.38 GB, free: 27.05 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000227/1.282, allocations: 157.4 kB / 1.38 GB, free: 27.05 MB / 0.8386 GB Notification: Performance of SimCode: time 2.91e-07/1.282, allocations: 0 / 1.38 GB, free: 27.05 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02726/1.309, allocations: 7.815 MB / 1.388 GB, free: 24.23 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002016/1.309, allocations: 155.5 kB / 1.388 GB, free: 24.03 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.349/3.658, allocations: 0 / 1.388 GB, free: 24.03 MB / 0.8386 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