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.363/2.363, allocations: 387.1 MB / 399.7 MB, free: 9.418 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.001052/0.001052, allocations: 176.9 kB / 492.3 MB, free: 0.5938 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.569/1.569, allocations: 221.3 MB / 0.7872 GB, free: 12.94 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.0009278/0.0009276, allocations: 99.83 kB / 0.9267 GB, free: 14 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.419e-05/3.438e-05, allocations: 0 / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.273/0.2731, allocations: 142.4 MB / 1.212 GB, free: 38.41 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9629/1.236, allocations: 156.9 MB / 1.366 GB, free: 18.95 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002669/1.236, allocations: 89.06 kB / 1.366 GB, free: 18.95 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.0241/1.26, allocations: 8.825 MB / 1.374 GB, free: 34.07 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.383e-06/1.261, allocations: 7.844 kB / 1.374 GB, free: 34.07 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 6.761e-05/1.261, allocations: 15.56 kB / 1.374 GB, free: 34.06 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.001739/1.262, allocations: 0.7489 MB / 1.375 GB, free: 33.55 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.441e-05/1.262, allocations: 11.53 kB / 1.375 GB, free: 33.55 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001754/1.263, allocations: 79.73 kB / 1.375 GB, free: 33.51 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001936/1.263, allocations: 64.02 kB / 1.375 GB, free: 33.48 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007299/1.264, allocations: 415.5 kB / 1.376 GB, free: 33.23 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.732e-05/1.264, allocations: 37.34 kB / 1.376 GB, free: 33.23 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.624e-05/1.264, allocations: 52.11 kB / 1.376 GB, free: 33.23 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008827/1.265, allocations: 0.5135 MB / 1.376 GB, free: 33.09 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.45e-05/1.265, allocations: 0 / 1.376 GB, free: 33.09 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.163e-05/1.265, allocations: 21.38 kB / 1.376 GB, free: 33.09 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.449e-05/1.265, allocations: 15.61 kB / 1.376 GB, free: 33.09 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006022/1.265, allocations: 340.7 kB / 1.377 GB, free: 33.08 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002518/1.268, allocations: 1.902 MB / 1.378 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005966/1.268, allocations: 315 kB / 1.379 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002111/1.269, allocations: 141.1 kB / 1.379 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 4.749e-05/1.269, allocations: 7.812 kB / 1.379 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003521/1.269, allocations: 216.6 kB / 1.379 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=35): time 2.114e-06/1.269, allocations: 0 / 1.379 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of matching and sorting (n=35): time 0.0005716/1.27, allocations: 300.7 kB / 1.379 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.011e-05/1.27, allocations: 143.1 kB / 1.38 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004413/1.27, allocations: 366 kB / 1.38 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 6.057e-05/1.27, allocations: 46.06 kB / 1.38 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001714/1.27, allocations: 243.9 kB / 1.38 GB, free: 31.46 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 8.265e-05/1.271, allocations: 103.9 kB / 1.38 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.082e-05/1.271, allocations: 4.75 kB / 1.38 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001235/1.271, allocations: 356.9 kB / 1.381 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002132/1.271, allocations: 120.5 kB / 1.381 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002525/1.271, allocations: 242 kB / 1.381 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002458/1.271, allocations: 166.4 kB / 1.381 GB, free: 30.92 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.162e-06/1.271, allocations: 7.844 kB / 1.381 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0006663/1.272, allocations: 453.5 kB / 1.382 GB, free: 30.8 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 4.06e-05/1.272, allocations: 40.25 kB / 1.382 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.104e-05/1.272, allocations: 3.438 kB / 1.382 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.416e-05/1.272, allocations: 7.625 kB / 1.382 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003541/1.273, allocations: 85.7 kB / 1.382 GB, free: 30.76 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.682e-05/1.273, allocations: 6.219 kB / 1.382 GB, free: 30.76 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004271/1.273, allocations: 83.44 kB / 1.382 GB, free: 30.74 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.9e-05/1.273, allocations: 33.03 kB / 1.382 GB, free: 30.73 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.000149/1.273, allocations: 151.8 kB / 1.382 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.149e-05/1.273, allocations: 38.94 kB / 1.382 GB, free: 30.59 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000575/1.274, allocations: 340 kB / 1.382 GB, free: 30.54 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.232e-06/1.274, allocations: 7.875 kB / 1.382 GB, free: 30.53 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/1.274, allocations: 0 / 1.382 GB, free: 30.53 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/1.274, allocations: 0 / 1.382 GB, free: 30.53 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001235/1.275, allocations: 0.9235 MB / 1.383 GB, free: 30.18 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/1.275, allocations: 0 / 1.383 GB, free: 30.18 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002863/1.276, allocations: 62.58 kB / 1.383 GB, free: 30.16 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.273e-06/1.276, allocations: 0 / 1.383 GB, free: 30.16 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.14e-05/1.276, allocations: 11.31 kB / 1.383 GB, free: 30.16 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.322e-06/1.276, allocations: 11.77 kB / 1.383 GB, free: 30.15 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/1.276, allocations: 0 / 1.383 GB, free: 30.15 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000844/1.276, allocations: 0.5902 MB / 1.384 GB, free: 29.91 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002058/1.277, allocations: 155.6 kB / 1.384 GB, free: 29.77 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.575e-05/1.277, allocations: 15.33 kB / 1.384 GB, free: 29.77 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003699/1.277, allocations: 54.23 kB / 1.384 GB, free: 29.75 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001356/1.277, allocations: 49.23 kB / 1.384 GB, free: 29.73 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.813e-05/1.277, allocations: 11.66 kB / 1.384 GB, free: 29.73 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0003209/1.278, allocations: 263.3 kB / 1.384 GB, free: 29.62 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.5e-07/1.278, allocations: 0 / 1.384 GB, free: 29.62 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0005718/1.278, allocations: 98.09 kB / 1.385 GB, free: 29.61 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.00141/1.28, allocations: 1.293 MB / 1.386 GB, free: 28.71 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0006717/1.28, allocations: 386.5 kB / 1.386 GB, free: 28.61 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/1.28, allocations: 0 / 1.386 GB, free: 28.61 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.000279/1.281, allocations: 163.3 kB / 1.386 GB, free: 28.6 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005665/1.281, allocations: 84.19 kB / 1.386 GB, free: 28.58 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001864/1.283, allocations: 0.6245 MB / 1.387 GB, free: 28.26 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005268/1.284, allocations: 0.8411 MB / 1.388 GB, free: 27.5 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0002812/1.284, allocations: 45.7 kB / 1.388 GB, free: 27.48 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002896/1.284, allocations: 159.2 kB / 1.388 GB, free: 27.45 MB / 0.8386 GB Notification: Performance of SimCode: time 1.322e-06/1.284, allocations: 0 / 1.388 GB, free: 27.45 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02571/1.31, allocations: 8.923 MB / 1.397 GB, free: 23.26 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001638/1.31, allocations: 170.9 kB / 1.397 GB, free: 23.03 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.209/3.52, allocations: 0 / 1.397 GB, free: 23.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