Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,fileNamePrefix="Buildings_10_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.001055/0.001055, allocations: 108 kB / 15.6 MB, free: 132 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.001014/0.001014, allocations: 193.9 kB / 16.53 MB, free: 6.391 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.24/1.24, 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 10.1.1-maint.10.0.x/package.mo): time 2.359/2.359, allocations: 437 MB / 0.7104 GB, free: 5.062 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 63.91 kB / 0.8693 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5255/0.5268, allocations: 151.6 MB / 1.017 GB, free: 2.488 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.003975/0.5308, allocations: 2.927 MB / 1.02 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001865/0.5327, allocations: 1.099 MB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003081/0.533, allocations: 15.94 kB / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0002483/0.5333, allocations: 79.14 kB / 1.021 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002158/0.5335, allocations: 83.17 kB / 1.022 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007852/0.5343, allocations: 349.6 kB / 1.022 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0007213/0.535, allocations: 0.7107 MB / 1.023 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005892/0.5356, allocations: 498.6 kB / 1.023 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002547/0.5359, allocations: 239.1 kB / 1.023 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002678/0.5362, allocations: 258.7 kB / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 9.138e-05/0.5363, allocations: 68 kB / 1.024 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001157/0.5364, allocations: 83.94 kB / 1.024 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001136/0.5365, allocations: 143.6 kB / 1.024 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.000205/0.5367, allocations: 278.6 kB / 1.024 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.000584/0.5373, allocations: 0.7204 MB / 1.025 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.5373, allocations: 0 / 1.025 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.212e-06/0.5373, allocations: 0 / 1.025 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.624e-06/0.5374, allocations: 0 / 1.025 GB, free: 10.95 MB / 0.7794 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.001471/0.5388, allocations: 0.8791 MB / 1.026 GB, free: 10.01 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.022e-05/0.5389, allocations: 8.031 kB / 1.026 GB, free: 10 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.204e-05/0.539, allocations: 90.7 kB / 1.026 GB, free: 9.902 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.748e-05/0.5391, allocations: 60.28 kB / 1.026 GB, free: 9.844 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005334/0.5396, allocations: 440.5 kB / 1.026 GB, free: 9.375 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.368e-05/0.5397, allocations: 37.38 kB / 1.026 GB, free: 9.34 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.004e-05/0.5397, allocations: 52.36 kB / 1.026 GB, free: 9.289 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008914/0.5406, allocations: 0.5314 MB / 1.027 GB, free: 8.723 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.159e-05/0.5407, allocations: 0 / 1.027 GB, free: 8.723 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.485e-05/0.5407, allocations: 23.98 kB / 1.027 GB, free: 8.699 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.123e-05/0.5407, allocations: 12 kB / 1.027 GB, free: 8.688 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009039/0.5416, allocations: 403.6 kB / 1.027 GB, free: 8.297 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002097/0.5437, allocations: 1.844 MB / 1.029 GB, free: 6.367 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009586/0.5447, allocations: 373.4 kB / 1.029 GB, free: 5.984 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003881/0.5451, allocations: 175.9 kB / 1.03 GB, free: 5.809 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.787e-05/0.5452, allocations: 7.938 kB / 1.03 GB, free: 5.801 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005739/0.5457, allocations: 243 kB / 1.03 GB, free: 5.543 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=35): time 1.563e-06/0.5457, allocations: 0 / 1.03 GB, free: 5.543 MB / 0.7794 GB Notification: Performance of matching and sorting (n=35): time 0.001259/0.547, allocations: 488.8 kB / 1.03 GB, free: 5.062 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.925e-05/0.5471, allocations: 85.11 kB / 1.03 GB, free: 4.961 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003977/0.5475, allocations: 401.3 kB / 1.031 GB, free: 4.562 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 5.034e-05/0.5475, allocations: 49.69 kB / 1.031 GB, free: 4.508 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001691/0.5477, allocations: 244.3 kB / 1.031 GB, free: 4.262 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 8.527e-05/0.5478, allocations: 98.64 kB / 1.031 GB, free: 4.164 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001516/0.548, allocations: 110.1 kB / 1.031 GB, free: 4.051 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001331/0.5481, allocations: 354.8 kB / 1.032 GB, free: 3.695 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004178/0.5485, allocations: 157 kB / 1.032 GB, free: 3.543 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004712/0.549, allocations: 265.9 kB / 1.032 GB, free: 3.234 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008039/0.5498, allocations: 411.4 kB / 1.032 GB, free: 2.785 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.5498, allocations: 0 / 1.032 GB, free: 2.785 MB / 0.7794 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001071/0.5509, allocations: 0.526 MB / 1.033 GB, free: 2.246 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.558e-05/0.5509, allocations: 29.7 kB / 1.033 GB, free: 2.211 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.551, allocations: 4 kB / 1.033 GB, free: 2.207 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.8e-05/0.551, allocations: 11.94 kB / 1.033 GB, free: 2.195 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003155/0.5513, allocations: 80.22 kB / 1.033 GB, free: 2.117 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.213e-05/0.5513, allocations: 11.94 kB / 1.033 GB, free: 2.105 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003617/0.5517, allocations: 71.42 kB / 1.033 GB, free: 2.035 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.253e-05/0.5517, allocations: 20 kB / 1.033 GB, free: 2.016 MB / 0.7794 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.0002226/0.552, allocations: 213.7 kB / 1.033 GB, free: 1.801 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.865e-05/0.552, allocations: 39.47 kB / 1.033 GB, free: 1.762 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009064/0.553, allocations: 385.4 kB / 1.034 GB, free: 1.375 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.553, allocations: 4 kB / 1.034 GB, free: 1.371 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.553, allocations: 4 kB / 1.034 GB, free: 1.367 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.865e-06/0.553, allocations: 3.984 kB / 1.034 GB, free: 1.363 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001484/0.5545, allocations: 0.9553 MB / 1.035 GB, free: 356 kB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.5545, allocations: 4.031 kB / 1.035 GB, free: 352 kB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002541/0.5548, allocations: 51.89 kB / 1.035 GB, free: 300 kB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/0.5548, allocations: 0 / 1.035 GB, free: 300 kB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.101e-05/0.5548, allocations: 12 kB / 1.035 GB, free: 288 kB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.028e-06/0.5548, allocations: 4 kB / 1.035 GB, free: 284 kB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.5548, allocations: 0 / 1.035 GB, free: 284 kB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001269/0.5561, allocations: 0.6405 MB / 1.035 GB, free: 15.61 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001466/0.5563, allocations: 152.5 kB / 1.035 GB, free: 15.45 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.216e-05/0.5563, allocations: 12 kB / 1.035 GB, free: 15.43 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003094/0.5566, allocations: 36.02 kB / 1.035 GB, free: 15.4 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001237/0.5568, allocations: 47.83 kB / 1.036 GB, free: 15.35 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.703e-05/0.5568, allocations: 15.98 kB / 1.036 GB, free: 15.34 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0002564/0.5571, allocations: 263.2 kB / 1.036 GB, free: 15.08 MB / 0.795 GB Notification: Performance of sort global known variables: time 2.5e-07/0.5571, allocations: 0 / 1.036 GB, free: 15.08 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0003849/0.5575, allocations: 99.75 kB / 1.036 GB, free: 14.98 MB / 0.795 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.00157/0.559, allocations: 1.222 MB / 1.037 GB, free: 13.73 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001008/0.5601, allocations: 451.5 kB / 1.038 GB, free: 13.28 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.5601, allocations: 0 / 1.038 GB, free: 13.28 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0004367/0.5605, allocations: 187.6 kB / 1.038 GB, free: 13.1 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005232/0.5611, allocations: 107.6 kB / 1.038 GB, free: 13 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005334/0.5664, allocations: 4.002 MB / 1.042 GB, free: 8.82 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003442/0.5668, allocations: 0.8313 MB / 1.043 GB, free: 7.965 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002014/0.567, allocations: 51.39 kB / 1.043 GB, free: 7.91 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002188/0.5672, allocations: 159.4 kB / 1.043 GB, free: 7.754 MB / 0.795 GB Notification: Performance of SimCode: time 2.1e-07/0.5672, allocations: 0 / 1.043 GB, free: 7.754 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.605/3.172, allocations: 9.052 MB / 1.052 GB, free: 14.84 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.69/13.87, allocations: 11.5 kB / 1.052 GB, free: 14.84 MB / 0.8106 GB (rm -f Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; mkfifo Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; head -c 1048576 < Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe >> ../files/Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil_res.mat --tempDir=temp_Buildings_10_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil.fmu > Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe 2>&1)