Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,fileNamePrefix="Buildings_latest_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.001303/0.001303, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001334/0.001334, allocations: 193.3 kB / 16.14 MB, free: 6.645 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.288/1.288, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.466/2.466, allocations: 461.8 MB / 0.7342 GB, free: 14.25 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001175/0.001175, allocations: 66.5 kB / 0.8985 GB, free: 37.11 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2352/0.2364, allocations: 157.4 MB / 1.052 GB, free: 8.27 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.003728/0.2402, allocations: 3.009 MB / 1.055 GB, free: 5.242 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001541/0.2418, allocations: 1.11 MB / 1.056 GB, free: 4.125 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00018/0.242, allocations: 11.94 kB / 1.056 GB, free: 4.113 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.000208/0.2422, allocations: 59.45 kB / 1.056 GB, free: 4.055 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001461/0.2423, allocations: 55.56 kB / 1.056 GB, free: 4 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005833/0.2429, allocations: 311.7 kB / 1.057 GB, free: 3.695 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0005198/0.2435, allocations: 0.6482 MB / 1.057 GB, free: 3.047 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004734/0.2439, allocations: 435.9 kB / 1.058 GB, free: 2.621 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000187/0.2441, allocations: 207.1 kB / 1.058 GB, free: 2.418 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002029/0.2443, allocations: 226.8 kB / 1.058 GB, free: 2.195 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 5.748e-05/0.2444, allocations: 32 kB / 1.058 GB, free: 2.164 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.348e-05/0.2445, allocations: 43.98 kB / 1.058 GB, free: 2.121 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8.974e-05/0.2446, allocations: 103.5 kB / 1.058 GB, free: 2.02 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001714/0.2448, allocations: 242.6 kB / 1.059 GB, free: 1.781 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004932/0.2453, allocations: 0.6697 MB / 1.059 GB, free: 1.109 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.289e-06/0.2453, allocations: 4 kB / 1.059 GB, free: 1.105 MB / 0.8106 GB Notification: Performance of FrontEnd: time 7.22e-07/0.2453, allocations: 0 / 1.059 GB, free: 1.105 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.192e-06/0.2453, allocations: 0 / 1.059 GB, free: 1.105 MB / 0.8106 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.001451/0.2468, allocations: 0.883 MB / 1.06 GB, free: 168 kB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.432e-05/0.2468, allocations: 11.97 kB / 1.06 GB, free: 156 kB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.028e-05/0.2469, allocations: 86.7 kB / 1.06 GB, free: 60 kB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.376e-05/0.247, allocations: 56.28 kB / 1.06 GB, free: 4 kB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005446/0.2476, allocations: 436.6 kB / 1.061 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.104e-05/0.2476, allocations: 53.3 kB / 1.061 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.679e-05/0.2477, allocations: 44.38 kB / 1.061 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009207/0.2486, allocations: 0.5353 MB / 1.061 GB, free: 14.87 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.359e-05/0.2486, allocations: 7.984 kB / 1.061 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.256e-05/0.2487, allocations: 16 kB / 1.061 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.204e-05/0.2487, allocations: 16 kB / 1.061 GB, free: 14.83 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009116/0.2496, allocations: 399.6 kB / 1.062 GB, free: 14.44 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001987/0.2516, allocations: 1.852 MB / 1.063 GB, free: 12.51 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008969/0.2525, allocations: 361.5 kB / 1.064 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003894/0.2529, allocations: 169.6 kB / 1.064 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.46e-05/0.253, allocations: 11.92 kB / 1.064 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005652/0.2535, allocations: 245.7 kB / 1.064 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=35): time 1.684e-06/0.2536, allocations: 0 / 1.064 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of matching and sorting (n=35): time 0.001217/0.2548, allocations: 487.8 kB / 1.065 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.496e-05/0.2548, allocations: 85.11 kB / 1.065 GB, free: 11.11 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003789/0.2552, allocations: 405.4 kB / 1.065 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.109e-05/0.2553, allocations: 37.7 kB / 1.065 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001577/0.2554, allocations: 248.3 kB / 1.065 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 7.981e-05/0.2555, allocations: 106.7 kB / 1.065 GB, free: 10.31 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001411/0.2557, allocations: 106.1 kB / 1.066 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001277/0.2558, allocations: 358.8 kB / 1.066 GB, free: 9.84 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003991/0.2562, allocations: 149 kB / 1.066 GB, free: 9.691 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004417/0.2567, allocations: 269.2 kB / 1.066 GB, free: 9.391 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007592/0.2574, allocations: 407.4 kB / 1.067 GB, free: 8.945 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.2574, allocations: 4 kB / 1.067 GB, free: 8.941 MB / 0.8262 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001034/0.2585, allocations: 0.5224 MB / 1.067 GB, free: 8.406 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.796e-05/0.2585, allocations: 43.47 kB / 1.067 GB, free: 8.359 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.228e-06/0.2585, allocations: 4 kB / 1.067 GB, free: 8.355 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.2586, allocations: 4 kB / 1.067 GB, free: 8.352 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000323/0.2589, allocations: 79.83 kB / 1.067 GB, free: 8.273 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.006e-05/0.2589, allocations: 4 kB / 1.067 GB, free: 8.27 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003428/0.2593, allocations: 71.48 kB / 1.067 GB, free: 8.199 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.288e-05/0.2593, allocations: 27.98 kB / 1.067 GB, free: 8.172 MB / 0.8262 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.0002092/0.2595, allocations: 201.7 kB / 1.068 GB, free: 7.965 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.534e-05/0.2596, allocations: 47.38 kB / 1.068 GB, free: 7.918 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008856/0.2605, allocations: 390.7 kB / 1.068 GB, free: 7.531 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.503e-06/0.2605, allocations: 7.984 kB / 1.068 GB, free: 7.523 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.2605, allocations: 0 / 1.068 GB, free: 7.523 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.281e-06/0.2605, allocations: 3.984 kB / 1.068 GB, free: 7.52 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001419/0.2619, allocations: 0.9517 MB / 1.069 GB, free: 6.508 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.087e-06/0.262, allocations: 7.938 kB / 1.069 GB, free: 6.5 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002508/0.2622, allocations: 47.89 kB / 1.069 GB, free: 6.453 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.905e-06/0.2622, allocations: 0 / 1.069 GB, free: 6.453 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.99e-05/0.2623, allocations: 15.98 kB / 1.069 GB, free: 6.438 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.396e-06/0.2623, allocations: 4 kB / 1.069 GB, free: 6.434 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.2623, allocations: 0 / 1.069 GB, free: 6.434 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00121/0.2635, allocations: 0.6521 MB / 1.07 GB, free: 5.758 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001305/0.2636, allocations: 148.6 kB / 1.07 GB, free: 5.594 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.163e-05/0.2637, allocations: 12 kB / 1.07 GB, free: 5.582 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003101/0.264, allocations: 31.95 kB / 1.07 GB, free: 5.551 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001124/0.2641, allocations: 51.88 kB / 1.07 GB, free: 5.5 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.338e-05/0.2642, allocations: 8 kB / 1.07 GB, free: 5.492 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0002405/0.2644, allocations: 271.2 kB / 1.07 GB, free: 5.227 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.61e-07/0.2644, allocations: 0 / 1.07 GB, free: 5.227 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003655/0.2648, allocations: 99.69 kB / 1.07 GB, free: 5.129 MB / 0.8262 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.active,preHeatCoil.pumOff.newActive,preHeatCoil.pumOff.oldActive,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 (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.001462/0.2663, allocations: 1.205 MB / 1.071 GB, free: 3.895 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0008533/0.2671, allocations: 439 kB / 1.072 GB, free: 3.453 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.2671, allocations: 3.938 kB / 1.072 GB, free: 3.449 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0004055/0.2675, allocations: 196.5 kB / 1.072 GB, free: 3.258 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005222/0.2681, allocations: 86.8 kB / 1.072 GB, free: 3.176 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005288/0.2734, allocations: 4.141 MB / 1.076 GB, free: 14.86 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003102/0.2737, allocations: 0.8235 MB / 1.077 GB, free: 14 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001925/0.2739, allocations: 55.45 kB / 1.077 GB, free: 13.95 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002246/0.2741, allocations: 155.4 kB / 1.077 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of SimCode: time 2.51e-07/0.2741, allocations: 0 / 1.077 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09012/0.3643, allocations: 8.628 MB / 1.086 GB, free: 5.359 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000162/0.3645, allocations: 225.7 kB / 1.086 GB, free: 5.102 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.839/2.204, allocations: 7.25 kB / 1.086 GB, free: 5.098 MB / 0.8419 GB (rm -f Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; mkfifo Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe >> ../files/Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil_res.mat --tempDir=temp_Buildings_latest_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil.fmu > Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe 2>&1)