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/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006038/0.006038, allocations: 101.1 kB / 15.73 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001436/0.001436, allocations: 194.5 kB / 16.67 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.29/1.29, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.292/2.292, allocations: 390.2 MB / 0.6648 GB, free: 228 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001235, allocations: 63.05 kB / 0.9504 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.243/0.2443, allocations: 140.4 MB / 1.087 GB, free: 2.055 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.004079/0.2484, allocations: 2.925 MB / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002016/0.2505, allocations: 1.114 MB / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002704/0.2508, allocations: 11.94 kB / 1.091 GB, free: 13.97 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0002514/0.251, allocations: 83.14 kB / 1.091 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001769/0.2512, allocations: 71.27 kB / 1.092 GB, free: 13.82 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007844/0.252, allocations: 349 kB / 1.092 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0006857/0.2527, allocations: 0.7107 MB / 1.093 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006358/0.2534, allocations: 0.4991 MB / 1.093 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002425/0.2536, allocations: 243.1 kB / 1.093 GB, free: 12.03 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002449/0.2539, allocations: 246.8 kB / 1.094 GB, free: 11.79 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 7.967e-05/0.254, allocations: 72 kB / 1.094 GB, free: 11.72 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001149/0.2541, allocations: 79.98 kB / 1.094 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.000125/0.2542, allocations: 139.6 kB / 1.094 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002295/0.2545, allocations: 278.5 kB / 1.094 GB, free: 11.23 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000716/0.2552, allocations: 0.7483 MB / 1.095 GB, free: 10.48 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.2552, allocations: 0 / 1.095 GB, free: 10.48 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.683e-06/0.2552, allocations: 0 / 1.095 GB, free: 10.48 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.12e-05/0.2552, allocations: 8 kB / 1.095 GB, free: 10.47 MB / 0.8575 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.2569, allocations: 0.8868 MB / 1.096 GB, free: 9.527 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/0.2569, allocations: 8.031 kB / 1.096 GB, free: 9.52 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.366e-05/0.257, allocations: 86.7 kB / 1.096 GB, free: 9.426 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001047/0.2571, allocations: 56.28 kB / 1.096 GB, free: 9.371 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006968/0.2578, allocations: 448.6 kB / 1.096 GB, free: 8.895 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.351e-05/0.2579, allocations: 41.38 kB / 1.096 GB, free: 8.855 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.775e-05/0.2579, allocations: 52.28 kB / 1.096 GB, free: 8.805 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009874/0.2589, allocations: 0.5314 MB / 1.097 GB, free: 8.234 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.684e-05/0.259, allocations: 4 kB / 1.097 GB, free: 8.23 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.732e-05/0.259, allocations: 20 kB / 1.097 GB, free: 8.211 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.307e-05/0.259, allocations: 12 kB / 1.097 GB, free: 8.199 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000955/0.26, allocations: 403.6 kB / 1.097 GB, free: 7.809 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002223/0.2622, allocations: 1.833 MB / 1.099 GB, free: 5.895 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009413/0.2632, allocations: 355 kB / 1.099 GB, free: 5.531 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004309/0.2636, allocations: 185.5 kB / 1.1 GB, free: 5.344 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.143e-05/0.2637, allocations: 11.92 kB / 1.1 GB, free: 5.332 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005415/0.2642, allocations: 241.7 kB / 1.1 GB, free: 5.074 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=35): time 2.545e-06/0.2642, allocations: 0 / 1.1 GB, free: 5.074 MB / 0.8575 GB Notification: Performance of matching and sorting (n=35): time 0.001278/0.2655, allocations: 479.9 kB / 1.1 GB, free: 4.602 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.226e-05/0.2656, allocations: 93.22 kB / 1.1 GB, free: 4.492 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004227/0.266, allocations: 401.4 kB / 1.101 GB, free: 4.098 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 5.685e-05/0.2661, allocations: 49.69 kB / 1.101 GB, free: 4.043 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002343/0.2663, allocations: 244.2 kB / 1.101 GB, free: 3.801 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 9.657e-05/0.2664, allocations: 102.6 kB / 1.101 GB, free: 3.699 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001529/0.2666, allocations: 106.2 kB / 1.101 GB, free: 3.59 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001632/0.2668, allocations: 358.7 kB / 1.102 GB, free: 3.23 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004208/0.2672, allocations: 161 kB / 1.102 GB, free: 3.074 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004772/0.2677, allocations: 261.9 kB / 1.102 GB, free: 2.77 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008257/0.2685, allocations: 415.3 kB / 1.102 GB, free: 2.316 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.2685, allocations: 0 / 1.102 GB, free: 2.316 MB / 0.8575 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001105/0.2697, allocations: 0.5145 MB / 1.103 GB, free: 1.789 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.041e-05/0.2697, allocations: 37.7 kB / 1.103 GB, free: 1.746 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.214e-05/0.2697, allocations: 4 kB / 1.103 GB, free: 1.742 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.877e-05/0.2697, allocations: 4 kB / 1.103 GB, free: 1.738 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003244/0.2701, allocations: 79.81 kB / 1.103 GB, free: 1.66 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.035e-05/0.2701, allocations: 4.312 kB / 1.103 GB, free: 1.656 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003854/0.2705, allocations: 75.48 kB / 1.103 GB, free: 1.582 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.598e-05/0.2705, allocations: 16 kB / 1.103 GB, free: 1.566 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 35 ($PRE.preHeatCoil.toOn.enableFire,$PRE.preHeatCoil.toOff.enableFire,preHeatCoil.toOn.t_start,$PRE.preHeatCoil.toOn.t_start,preHeatCoil.stateGraphRoot.resume,preHeatCoil.stateGraphRoot.suspend,preHeatCoil.toOff.t_start,$PRE.preHeatCoil.toOff.t_start,preHeatCoil.toOff.fire,preHeatCoil.toOff.enableFire,preHeatCoil.pumOn.active,preHeatCoil.pumOn.oldActive,$PRE.preHeatCoil.pumOn.oldActive,preHeatCoil.pumOn.newActive,$PRE.preHeatCoil.pumOn.newActive,preHeatCoil.pumOn.localActive,$PRE.preHeatCoil.pumOn.localActive,preHeatCoil.stateGraphRoot.activeSteps,preHeatCoil.toOn.enableFire,preHeatCoil.pumOff.oldActive,$PRE.preHeatCoil.pumOff.oldActive,preHeatCoil.pumOff.newActive,$PRE.preHeatCoil.pumOff.newActive,preHeatCoil.pumOff.localActive,$PRE.preHeatCoil.pumOff.localActive,preHeatCoil.pumOff.active,preHeatCoil.preHeaOn.y,$PRE.preHeatCoil.preHeaOn.y,TMix.count,$PRE.TMix.count,TMix.T_start,$PRE.TMix.T_start,$whenCondition1,$whenCondition2,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 (59): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002562/0.2708, allocations: 206.2 kB / 1.103 GB, free: 1.359 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.613e-05/0.2709, allocations: 47.38 kB / 1.103 GB, free: 1.312 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009513/0.2718, allocations: 394.1 kB / 1.104 GB, free: 0.918 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.2719, allocations: 4 kB / 1.104 GB, free: 0.9141 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.2719, allocations: 4 kB / 1.104 GB, free: 0.9102 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-06/0.2719, allocations: 3.984 kB / 1.104 GB, free: 0.9062 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001666/0.2736, allocations: 0.9528 MB / 1.105 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.2736, allocations: 0 / 1.105 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002695/0.2738, allocations: 51.89 kB / 1.105 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.809e-06/0.2739, allocations: 4.031 kB / 1.105 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.983e-05/0.2739, allocations: 15.98 kB / 1.105 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.2739, allocations: 0 / 1.105 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.2739, allocations: 4 kB / 1.105 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001317/0.2752, allocations: 0.6453 MB / 1.105 GB, free: 15.15 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001566/0.2754, allocations: 152.5 kB / 1.105 GB, free: 14.98 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.326e-05/0.2755, allocations: 4 kB / 1.106 GB, free: 14.98 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003256/0.2758, allocations: 44.02 kB / 1.106 GB, free: 14.94 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001136/0.2759, allocations: 47.83 kB / 1.106 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.938e-05/0.276, allocations: 15.98 kB / 1.106 GB, free: 14.88 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0003397/0.2763, allocations: 263.2 kB / 1.106 GB, free: 14.62 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2763, allocations: 0 / 1.106 GB, free: 14.62 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0004455/0.2768, allocations: 95.69 kB / 1.106 GB, free: 14.52 MB / 0.8731 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.active,preHeatCoil.pumOff.active,$cse1,$cse2,$whenCondition2,$whenCondition1,TMix.T_start,TMix.count,preHeatCoil.preHeaOn.y,preHeatCoil.pumOff.localActive,preHeatCoil.pumOff.newActive,preHeatCoil.pumOff.oldActive,preHeatCoil.toOn.enableFire,preHeatCoil.stateGraphRoot.activeSteps,preHeatCoil.pumOn.localActive,preHeatCoil.pumOn.newActive,preHeatCoil.pumOn.oldActive,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001708/0.2785, allocations: 1.21 MB / 1.107 GB, free: 13.29 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001007/0.2795, allocations: 439.9 kB / 1.108 GB, free: 12.84 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.2795, allocations: 4.25 kB / 1.108 GB, free: 12.84 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0004479/0.28, allocations: 183.8 kB / 1.108 GB, free: 12.66 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005946/0.2806, allocations: 86.58 kB / 1.108 GB, free: 12.57 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00583/0.2864, allocations: 3.962 MB / 1.112 GB, free: 8.438 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003837/0.2869, allocations: 0.8312 MB / 1.112 GB, free: 7.578 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0002274/0.2871, allocations: 51.44 kB / 1.113 GB, free: 7.523 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002339/0.2873, allocations: 159.4 kB / 1.113 GB, free: 7.367 MB / 0.8731 GB Notification: Performance of SimCode: time 6.21e-07/0.2873, allocations: 4 kB / 1.113 GB, free: 7.363 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0304/0.3177, allocations: 9.216 MB / 1.122 GB, free: 14.3 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.418/8.736, allocations: 2 kB / 1.122 GB, free: 14.3 MB / 0.8887 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/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)