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.001405/0.001405, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001306/0.001306, allocations: 194.7 kB / 16.53 MB, free: 6.664 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.264/1.264, allocations: 222.9 MB / 240.2 MB, free: 4.414 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.504/2.504, allocations: 469.8 MB / 0.7424 GB, free: 7.453 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00171/0.00171, allocations: 67.47 kB / 0.9087 GB, free: 34.31 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2339/0.2356, allocations: 159.2 MB / 1.064 GB, free: 14.19 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.003913/0.2396, allocations: 2.937 MB / 1.067 GB, free: 11.23 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001653/0.2412, allocations: 1.11 MB / 1.068 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001726/0.2414, allocations: 11.94 kB / 1.068 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001998/0.2416, allocations: 79.14 kB / 1.068 GB, free: 10.03 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001603/0.2418, allocations: 79.25 kB / 1.068 GB, free: 9.949 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006382/0.2424, allocations: 338.2 kB / 1.069 GB, free: 9.621 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0006474/0.2431, allocations: 0.7147 MB / 1.069 GB, free: 8.906 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005392/0.2436, allocations: 492.5 kB / 1.07 GB, free: 8.422 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002259/0.2439, allocations: 243.1 kB / 1.07 GB, free: 8.184 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002448/0.2441, allocations: 254.8 kB / 1.07 GB, free: 7.934 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 8.399e-05/0.2442, allocations: 72 kB / 1.07 GB, free: 7.863 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001139/0.2443, allocations: 79.98 kB / 1.07 GB, free: 7.785 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001247/0.2445, allocations: 139.5 kB / 1.07 GB, free: 7.648 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002184/0.2447, allocations: 278.6 kB / 1.071 GB, free: 7.375 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0006287/0.2453, allocations: 0.7204 MB / 1.071 GB, free: 6.652 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.2453, allocations: 0 / 1.071 GB, free: 6.652 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.093e-06/0.2453, allocations: 0 / 1.071 GB, free: 6.652 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.432e-06/0.2453, allocations: 0 / 1.071 GB, free: 6.652 MB / 0.8262 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.001486/0.2468, allocations: 0.8869 MB / 1.072 GB, free: 5.707 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.048e-05/0.2469, allocations: 12.03 kB / 1.072 GB, free: 5.695 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.188e-05/0.247, allocations: 86.7 kB / 1.072 GB, free: 5.602 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.548e-05/0.2471, allocations: 56.28 kB / 1.072 GB, free: 5.547 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005479/0.2476, allocations: 440.5 kB / 1.073 GB, free: 5.074 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.07e-05/0.2477, allocations: 41.38 kB / 1.073 GB, free: 5.035 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.007e-05/0.2477, allocations: 48.38 kB / 1.073 GB, free: 4.988 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009122/0.2487, allocations: 0.5392 MB / 1.073 GB, free: 4.414 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.2487, allocations: 0 / 1.073 GB, free: 4.414 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.219e-05/0.2487, allocations: 20 kB / 1.073 GB, free: 4.395 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.053e-05/0.2487, allocations: 8 kB / 1.073 GB, free: 4.387 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009111/0.2497, allocations: 411.6 kB / 1.074 GB, free: 3.988 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002048/0.2517, allocations: 1.848 MB / 1.076 GB, free: 2.059 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008693/0.2526, allocations: 364.2 kB / 1.076 GB, free: 1.688 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003822/0.253, allocations: 169.6 kB / 1.076 GB, free: 1.516 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.717e-05/0.253, allocations: 7.938 kB / 1.076 GB, free: 1.508 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005238/0.2536, allocations: 250.6 kB / 1.076 GB, free: 1.242 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=35): time 1.453e-06/0.2536, allocations: 0 / 1.076 GB, free: 1.242 MB / 0.8262 GB Notification: Performance of matching and sorting (n=35): time 0.001174/0.2547, allocations: 483.9 kB / 1.077 GB, free: 0.7656 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.651e-05/0.2548, allocations: 89.03 kB / 1.077 GB, free: 0.6602 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003926/0.2552, allocations: 405.4 kB / 1.077 GB, free: 268 kB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.331e-05/0.2553, allocations: 37.7 kB / 1.077 GB, free: 224 kB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001859/0.2555, allocations: 252.4 kB / 1.078 GB, free: 15.96 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 8.572e-05/0.2555, allocations: 98.64 kB / 1.078 GB, free: 15.87 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001416/0.2557, allocations: 114.3 kB / 1.078 GB, free: 15.75 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001482/0.2558, allocations: 350.8 kB / 1.078 GB, free: 15.39 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003905/0.2562, allocations: 157 kB / 1.078 GB, free: 15.24 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004602/0.2567, allocations: 261.9 kB / 1.079 GB, free: 14.95 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007844/0.2575, allocations: 419.3 kB / 1.079 GB, free: 14.49 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.2575, allocations: 0 / 1.079 GB, free: 14.49 MB / 0.8419 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.00101/0.2585, allocations: 0.5221 MB / 1.079 GB, free: 13.95 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 3.157e-05/0.2586, allocations: 34.11 kB / 1.08 GB, free: 13.91 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.2586, allocations: 8 kB / 1.08 GB, free: 13.91 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.403e-05/0.2586, allocations: 4 kB / 1.08 GB, free: 13.9 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002924/0.2589, allocations: 79.81 kB / 1.08 GB, free: 13.82 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.396e-06/0.2589, allocations: 4 kB / 1.08 GB, free: 13.82 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003307/0.2593, allocations: 75.48 kB / 1.08 GB, free: 13.75 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.758e-05/0.2593, allocations: 20 kB / 1.08 GB, free: 13.73 MB / 0.8419 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.0002114/0.2595, allocations: 210.2 kB / 1.08 GB, free: 13.52 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.784e-05/0.2596, allocations: 47.38 kB / 1.08 GB, free: 13.47 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008785/0.2605, allocations: 393.4 kB / 1.08 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.745e-06/0.2605, allocations: 7.984 kB / 1.08 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.2605, allocations: 4 kB / 1.08 GB, free: 13.06 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.684e-06/0.2605, allocations: 3.984 kB / 1.08 GB, free: 13.06 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001432/0.2619, allocations: 0.9515 MB / 1.081 GB, free: 12.05 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.262, allocations: 0 / 1.081 GB, free: 12.05 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002337/0.2622, allocations: 43.91 kB / 1.081 GB, free: 12 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.081e-06/0.2622, allocations: 7.984 kB / 1.081 GB, free: 12 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.292e-05/0.2622, allocations: 8 kB / 1.081 GB, free: 11.99 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.963e-06/0.2622, allocations: 0 / 1.081 GB, free: 11.99 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.2622, allocations: 0 / 1.081 GB, free: 11.99 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001228/0.2635, allocations: 0.6444 MB / 1.082 GB, free: 11.32 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001386/0.2636, allocations: 156.5 kB / 1.082 GB, free: 11.15 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.339e-05/0.2637, allocations: 11.98 kB / 1.082 GB, free: 11.14 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002948/0.264, allocations: 35.95 kB / 1.082 GB, free: 11.1 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001074/0.2641, allocations: 47.89 kB / 1.082 GB, free: 11.05 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.431e-05/0.2641, allocations: 15.98 kB / 1.082 GB, free: 11.04 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002571/0.2644, allocations: 263.2 kB / 1.082 GB, free: 10.78 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2644, allocations: 4 kB / 1.082 GB, free: 10.78 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003471/0.2648, allocations: 99.69 kB / 1.083 GB, free: 10.68 MB / 0.8419 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.001559/0.2663, allocations: 1.2 MB / 1.084 GB, free: 9.453 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0009777/0.2673, allocations: 458.8 kB / 1.084 GB, free: 8.992 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.2673, allocations: 3.938 kB / 1.084 GB, free: 8.988 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0004235/0.2677, allocations: 192.5 kB / 1.084 GB, free: 8.801 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004719/0.2682, allocations: 91.94 kB / 1.084 GB, free: 8.707 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005321/0.2736, allocations: 4.002 MB / 1.088 GB, free: 4.52 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003976/0.274, allocations: 0.8313 MB / 1.089 GB, free: 3.66 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.000183/0.2742, allocations: 55.44 kB / 1.089 GB, free: 3.605 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002253/0.2744, allocations: 163.4 kB / 1.089 GB, free: 3.445 MB / 0.8419 GB Notification: Performance of SimCode: time 2.1e-07/0.2744, allocations: 0 / 1.089 GB, free: 3.445 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.95/2.224, allocations: 9.051 MB / 1.098 GB, free: 10.54 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.81/17.03, allocations: 14.03 kB / 1.098 GB, free: 10.53 MB / 0.8575 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)