Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,fileNamePrefix="Buildings_11_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.004423/0.004423, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.001304/0.001305, allocations: 194.8 kB / 16.67 MB, free: 5.973 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.229/1.229, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.441/2.441, allocations: 469.8 MB / 0.7425 GB, free: 7.344 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001661/0.001661, allocations: 67.83 kB / 1.065 GB, free: 13.62 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2471/0.2487, allocations: 159.1 MB / 1.22 GB, free: 14.38 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.003785/0.2525, allocations: 2.955 MB / 1.223 GB, free: 11.4 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001599/0.2542, allocations: 1.099 MB / 1.224 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001671/0.2543, allocations: 15.94 kB / 1.224 GB, free: 10.28 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0002102/0.2546, allocations: 79.14 kB / 1.224 GB, free: 10.2 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.00016/0.2547, allocations: 75.19 kB / 1.224 GB, free: 10.12 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006486/0.2554, allocations: 338.8 kB / 1.225 GB, free: 9.797 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0006825/0.2561, allocations: 0.7223 MB / 1.225 GB, free: 9.07 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005391/0.2566, allocations: 492.3 kB / 1.226 GB, free: 8.578 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002328/0.2569, allocations: 255 kB / 1.226 GB, free: 8.328 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002525/0.2571, allocations: 246.8 kB / 1.226 GB, free: 8.086 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 8.452e-05/0.2572, allocations: 75.94 kB / 1.226 GB, free: 8.012 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001119/0.2573, allocations: 72 kB / 1.226 GB, free: 7.941 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001237/0.2575, allocations: 143.6 kB / 1.227 GB, free: 7.801 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0002207/0.2577, allocations: 278.6 kB / 1.227 GB, free: 7.527 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0006802/0.2584, allocations: 0.7587 MB / 1.228 GB, free: 6.766 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.2584, allocations: 4 kB / 1.228 GB, free: 6.762 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.052e-06/0.2584, allocations: 0 / 1.228 GB, free: 6.762 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.613e-06/0.2584, allocations: 0 / 1.228 GB, free: 6.762 MB / 0.9825 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.001467/0.2599, allocations: 0.8903 MB / 1.228 GB, free: 5.812 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/0.2599, allocations: 15.97 kB / 1.228 GB, free: 5.797 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.978e-05/0.26, allocations: 86.7 kB / 1.228 GB, free: 5.703 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.301e-05/0.2601, allocations: 64.56 kB / 1.229 GB, free: 5.641 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005839/0.2607, allocations: 448.8 kB / 1.229 GB, free: 5.164 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.83e-05/0.2608, allocations: 37.38 kB / 1.229 GB, free: 5.129 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.088e-05/0.2608, allocations: 56.31 kB / 1.229 GB, free: 5.074 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009199/0.2618, allocations: 0.5314 MB / 1.23 GB, free: 4.512 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.311e-05/0.2618, allocations: 0 / 1.23 GB, free: 4.512 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.065e-05/0.2618, allocations: 24 kB / 1.23 GB, free: 4.488 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.171e-05/0.2618, allocations: 12 kB / 1.23 GB, free: 4.477 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009126/0.2628, allocations: 399.6 kB / 1.23 GB, free: 4.086 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002024/0.2648, allocations: 1.837 MB / 1.232 GB, free: 2.172 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008589/0.2657, allocations: 369.5 kB / 1.232 GB, free: 1.793 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003825/0.2661, allocations: 174.2 kB / 1.232 GB, free: 1.617 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 3.007e-05/0.2661, allocations: 7.938 kB / 1.232 GB, free: 1.609 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004974/0.2666, allocations: 242.5 kB / 1.233 GB, free: 1.352 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=35): time 1.573e-06/0.2666, allocations: 0 / 1.233 GB, free: 1.352 MB / 0.9825 GB Notification: Performance of matching and sorting (n=35): time 0.001182/0.2678, allocations: 492.2 kB / 1.233 GB, free: 0.8672 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.16e-05/0.2679, allocations: 85.11 kB / 1.233 GB, free: 0.7656 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004191/0.2683, allocations: 409.5 kB / 1.233 GB, free: 364 kB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.294e-05/0.2683, allocations: 41.7 kB / 1.234 GB, free: 316 kB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001791/0.2685, allocations: 256.7 kB / 1.234 GB, free: 56 kB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 9.693e-05/0.2686, allocations: 111.3 kB / 1.234 GB, free: 15.94 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001433/0.2688, allocations: 102.2 kB / 1.234 GB, free: 15.84 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.00015/0.2689, allocations: 362.8 kB / 1.234 GB, free: 15.47 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000396/0.2693, allocations: 153 kB / 1.234 GB, free: 15.32 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004578/0.2698, allocations: 261.9 kB / 1.235 GB, free: 15.02 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007738/0.2706, allocations: 415.3 kB / 1.235 GB, free: 14.57 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.2706, allocations: 4 kB / 1.235 GB, free: 14.57 MB / 0.9981 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001015/0.2716, allocations: 0.5222 MB / 1.236 GB, free: 14.04 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 3.053e-05/0.2716, allocations: 37.7 kB / 1.236 GB, free: 13.99 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.2717, allocations: 4 kB / 1.236 GB, free: 13.99 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.273e-05/0.2717, allocations: 4 kB / 1.236 GB, free: 13.98 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003137/0.272, allocations: 80.23 kB / 1.236 GB, free: 13.91 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.058e-05/0.272, allocations: 7.984 kB / 1.236 GB, free: 13.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003256/0.2723, allocations: 71.59 kB / 1.236 GB, free: 13.83 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.193e-05/0.2724, allocations: 23.98 kB / 1.236 GB, free: 13.8 MB / 0.9981 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.0002106/0.2726, allocations: 213.6 kB / 1.236 GB, free: 13.59 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.367e-05/0.2727, allocations: 47.66 kB / 1.236 GB, free: 13.54 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008753/0.2735, allocations: 381.6 kB / 1.236 GB, free: 13.16 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.2736, allocations: 4 kB / 1.236 GB, free: 13.16 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.2736, allocations: 4 kB / 1.236 GB, free: 13.16 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.2736, allocations: 0 / 1.236 GB, free: 13.16 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001438/0.275, allocations: 0.9521 MB / 1.237 GB, free: 12.14 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.275, allocations: 0 / 1.237 GB, free: 12.14 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000236/0.2753, allocations: 51.98 kB / 1.237 GB, free: 12.09 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.957e-06/0.2753, allocations: 4 kB / 1.237 GB, free: 12.09 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.704e-05/0.2753, allocations: 15.92 kB / 1.237 GB, free: 12.07 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.083e-06/0.2753, allocations: 0 / 1.237 GB, free: 12.07 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.2753, allocations: 4 kB / 1.237 GB, free: 12.07 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001261/0.2766, allocations: 0.6433 MB / 1.238 GB, free: 11.4 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001355/0.2767, allocations: 148.7 kB / 1.238 GB, free: 11.24 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.88e-05/0.2768, allocations: 8 kB / 1.238 GB, free: 11.23 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003014/0.2771, allocations: 48 kB / 1.238 GB, free: 11.18 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001094/0.2772, allocations: 47.88 kB / 1.238 GB, free: 11.14 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.43e-05/0.2773, allocations: 15.94 kB / 1.238 GB, free: 11.12 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0002621/0.2775, allocations: 267.2 kB / 1.239 GB, free: 10.86 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2775, allocations: 0 / 1.239 GB, free: 10.86 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.000343/0.2779, allocations: 95.78 kB / 1.239 GB, free: 10.76 MB / 0.9981 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.001555/0.2794, allocations: 1.216 MB / 1.24 GB, free: 9.516 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0009125/0.2804, allocations: 443.3 kB / 1.24 GB, free: 9.07 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.2804, allocations: 0 / 1.24 GB, free: 9.07 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004339/0.2808, allocations: 187.6 kB / 1.24 GB, free: 8.887 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004584/0.2813, allocations: 99.77 kB / 1.241 GB, free: 8.797 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005272/0.2866, allocations: 3.952 MB / 1.244 GB, free: 4.664 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003991/0.287, allocations: 0.8274 MB / 1.245 GB, free: 3.809 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001709/0.2871, allocations: 55.42 kB / 1.245 GB, free: 3.75 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002292/0.2874, allocations: 163.4 kB / 1.245 GB, free: 3.59 MB / 0.9981 GB Notification: Performance of SimCode: time 2.1e-07/0.2874, allocations: 0 / 1.245 GB, free: 3.59 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9485/1.236, allocations: 9.205 MB / 1.254 GB, free: 29.19 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.092/10.33, allocations: 10.31 kB / 1.254 GB, free: 29.19 MB / 0.9981 GB (rm -f Buildings_11_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; mkfifo Buildings_11_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; head -c 1048576 < Buildings_11_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe >> ../files/Buildings_11_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil_res.mat --tempDir=temp_Buildings_11_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil_fmu --startTime=0 --stopTime=10800 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil.fmu > Buildings_11_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe 2>&1)