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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001465/0.001465, 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.001602/0.001602, allocations: 195.6 kB / 16.14 MB, free: 6.648 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.328/1.328, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.402/2.402, allocations: 437 MB / 0.7099 GB, free: 5.328 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001359/0.001359, allocations: 67.91 kB / 0.8687 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5184/0.5197, allocations: 151.6 MB / 1.017 GB, free: 2.75 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.003859/0.5236, allocations: 3.019 MB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001584/0.5252, allocations: 1.091 MB / 1.021 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001913/0.5254, allocations: 15.94 kB / 1.021 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0002177/0.5257, allocations: 67.44 kB / 1.021 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001457/0.5258, allocations: 47.59 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.000607/0.5264, allocations: 312.9 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.000551/0.527, allocations: 0.6481 MB / 1.022 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004933/0.5275, allocations: 445.8 kB / 1.022 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000195/0.5277, allocations: 195.1 kB / 1.022 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002185/0.5279, allocations: 238.7 kB / 1.023 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 6.167e-05/0.528, allocations: 32 kB / 1.023 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 9.402e-05/0.5281, allocations: 43.94 kB / 1.023 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001027/0.5282, allocations: 111.5 kB / 1.023 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001844/0.5284, allocations: 234.6 kB / 1.023 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0005113/0.5289, allocations: 0.6658 MB / 1.024 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.5289, allocations: 0 / 1.024 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of FrontEnd: time 7.21e-07/0.5289, allocations: 0 / 1.024 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.552e-06/0.529, allocations: 4 kB / 1.024 GB, free: 11.59 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.001498/0.5305, allocations: 0.8908 MB / 1.025 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.565e-05/0.5305, allocations: 19.92 kB / 1.025 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.061e-05/0.5306, allocations: 82.7 kB / 1.025 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001033/0.5307, allocations: 60.28 kB / 1.025 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005441/0.5313, allocations: 432.6 kB / 1.025 GB, free: 10 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.802e-05/0.5313, allocations: 37.38 kB / 1.025 GB, free: 9.965 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.927e-05/0.5314, allocations: 52.38 kB / 1.025 GB, free: 9.914 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009595/0.5323, allocations: 0.5392 MB / 1.026 GB, free: 9.34 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.5324, allocations: 0 / 1.026 GB, free: 9.34 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.661e-05/0.5324, allocations: 16 kB / 1.026 GB, free: 9.324 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.142e-05/0.5324, allocations: 12 kB / 1.026 GB, free: 9.312 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009469/0.5334, allocations: 403.6 kB / 1.026 GB, free: 8.918 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002007/0.5354, allocations: 1.856 MB / 1.028 GB, free: 6.98 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008909/0.5363, allocations: 364.8 kB / 1.028 GB, free: 6.609 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000384/0.5367, allocations: 173.6 kB / 1.028 GB, free: 6.434 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.109e-05/0.5367, allocations: 7.938 kB / 1.028 GB, free: 6.426 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005356/0.5373, allocations: 246.6 kB / 1.029 GB, free: 6.164 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=35): time 1.483e-06/0.5373, allocations: 0 / 1.029 GB, free: 6.164 MB / 0.7794 GB Notification: Performance of matching and sorting (n=35): time 0.001202/0.5385, allocations: 487.8 kB / 1.029 GB, free: 5.684 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.579e-05/0.5386, allocations: 85.09 kB / 1.029 GB, free: 5.582 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003778/0.5389, allocations: 397.5 kB / 1.03 GB, free: 5.188 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.633e-05/0.539, allocations: 45.83 kB / 1.03 GB, free: 5.137 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001626/0.5392, allocations: 256.2 kB / 1.03 GB, free: 4.883 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 7.47e-05/0.5392, allocations: 94.73 kB / 1.03 GB, free: 4.789 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001541/0.5394, allocations: 114.1 kB / 1.03 GB, free: 4.672 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001141/0.5395, allocations: 350.8 kB / 1.03 GB, free: 4.32 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004102/0.5399, allocations: 153 kB / 1.031 GB, free: 4.172 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004565/0.5404, allocations: 261.9 kB / 1.031 GB, free: 3.871 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007745/0.5412, allocations: 415.3 kB / 1.031 GB, free: 3.418 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/0.5412, allocations: 0 / 1.031 GB, free: 3.418 MB / 0.7794 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001046/0.5423, allocations: 0.5301 MB / 1.032 GB, free: 2.875 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.957e-05/0.5423, allocations: 33.7 kB / 1.032 GB, free: 2.836 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.5423, allocations: 0 / 1.032 GB, free: 2.836 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.668e-05/0.5423, allocations: 15.92 kB / 1.032 GB, free: 2.82 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003148/0.5426, allocations: 75.81 kB / 1.032 GB, free: 2.746 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.15e-05/0.5427, allocations: 11.98 kB / 1.032 GB, free: 2.734 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003574/0.543, allocations: 79.61 kB / 1.032 GB, free: 2.656 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.534e-05/0.5431, allocations: 16 kB / 1.032 GB, free: 2.641 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.0002081/0.5433, allocations: 209.7 kB / 1.032 GB, free: 2.43 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.245e-05/0.5434, allocations: 43.47 kB / 1.032 GB, free: 2.387 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009047/0.5443, allocations: 397.3 kB / 1.033 GB, free: 1.992 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.409e-06/0.5443, allocations: 4 kB / 1.033 GB, free: 1.988 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.5443, allocations: 0 / 1.033 GB, free: 1.988 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.311e-06/0.5443, allocations: 3.984 kB / 1.033 GB, free: 1.984 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001451/0.5458, allocations: 0.9515 MB / 1.034 GB, free: 0.9727 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.215e-06/0.5458, allocations: 0 / 1.034 GB, free: 0.9727 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002588/0.546, allocations: 47.89 kB / 1.034 GB, free: 0.9258 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/0.5461, allocations: 4 kB / 1.034 GB, free: 0.9219 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.589e-05/0.5461, allocations: 8 kB / 1.034 GB, free: 0.9141 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.5461, allocations: 4.031 kB / 1.034 GB, free: 0.9102 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.5461, allocations: 0 / 1.034 GB, free: 0.9102 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001245/0.5474, allocations: 0.6483 MB / 1.034 GB, free: 244 kB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001321/0.5475, allocations: 148.5 kB / 1.034 GB, free: 76 kB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.917e-05/0.5476, allocations: 11.98 kB / 1.034 GB, free: 64 kB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003172/0.5479, allocations: 39.94 kB / 1.034 GB, free: 24 kB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001206/0.548, allocations: 47.95 kB / 1.034 GB, free: 15.98 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.753e-05/0.5481, allocations: 11.98 kB / 1.034 GB, free: 15.96 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0002609/0.5483, allocations: 263.2 kB / 1.035 GB, free: 15.7 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.7e-07/0.5483, allocations: 4 kB / 1.035 GB, free: 15.7 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0003788/0.5487, allocations: 95.73 kB / 1.035 GB, free: 15.61 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.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.001529/0.5502, allocations: 1.208 MB / 1.036 GB, free: 14.36 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0008885/0.5511, allocations: 442.9 kB / 1.036 GB, free: 13.91 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.5512, allocations: 4.812 kB / 1.036 GB, free: 13.91 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0004315/0.5516, allocations: 183.8 kB / 1.037 GB, free: 13.73 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005066/0.5521, allocations: 86.33 kB / 1.037 GB, free: 13.65 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005611/0.5577, allocations: 4.162 MB / 1.041 GB, free: 9.309 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003326/0.5581, allocations: 0.8235 MB / 1.042 GB, free: 8.461 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002021/0.5583, allocations: 63.42 kB / 1.042 GB, free: 8.398 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002311/0.5585, allocations: 159.4 kB / 1.042 GB, free: 8.242 MB / 0.795 GB Notification: Performance of SimCode: time 3.01e-07/0.5585, allocations: 0 / 1.042 GB, free: 8.242 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01816/0.5767, allocations: 8.596 MB / 1.05 GB, free: 15.81 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001626/0.5769, allocations: 223.1 kB / 1.05 GB, free: 15.55 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.794/2.371, allocations: 0 / 1.05 GB, free: 15.55 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)