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.0007379/0.0007381, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.004187/0.004187, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.271/1.271, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.542/2.542, allocations: 462.6 MB / 0.7364 GB, free: 15.56 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003041/0.0003041, allocations: 15.97 kB / 0.9029 GB, free: 36.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2417/0.242, allocations: 159.6 MB / 1.059 GB, free: 4.871 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.002841/0.2449, allocations: 2.625 MB / 1.061 GB, free: 2.23 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001581/0.2465, allocations: 1.099 MB / 1.062 GB, free: 1.125 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001797/0.2467, allocations: 15.94 kB / 1.062 GB, free: 1.109 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001765/0.2469, allocations: 51.52 kB / 1.062 GB, free: 1.059 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001596/0.2471, allocations: 59.5 kB / 1.063 GB, free: 1 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000624/0.2477, allocations: 314.5 kB / 1.063 GB, free: 0.6953 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0005711/0.2483, allocations: 0.6482 MB / 1.063 GB, free: 48 kB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005105/0.2488, allocations: 412.7 kB / 1.064 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001767/0.249, allocations: 175.1 kB / 1.064 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001975/0.2492, allocations: 186.8 kB / 1.064 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.639e-05/0.2492, allocations: 20 kB / 1.064 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 7.533e-05/0.2493, allocations: 27.98 kB / 1.064 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 8.035e-05/0.2494, allocations: 83.61 kB / 1.064 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001738/0.2496, allocations: 240.2 kB / 1.065 GB, free: 14.9 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005105/0.2501, allocations: 0.6503 MB / 1.065 GB, free: 14.25 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.2501, allocations: 0 / 1.065 GB, free: 14.25 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.323e-06/0.2501, allocations: 0 / 1.065 GB, free: 14.25 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.933e-06/0.2501, allocations: 0 / 1.065 GB, free: 14.25 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.001381/0.2515, allocations: 0.7935 MB / 1.066 GB, free: 13.4 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.596e-05/0.2516, allocations: 15.97 kB / 1.066 GB, free: 13.39 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.937e-05/0.2517, allocations: 86.7 kB / 1.066 GB, free: 13.29 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.116e-05/0.2518, allocations: 56.28 kB / 1.066 GB, free: 13.24 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005527/0.2523, allocations: 440.5 kB / 1.067 GB, free: 12.76 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.331e-05/0.2524, allocations: 45.38 kB / 1.067 GB, free: 12.72 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.002e-05/0.2525, allocations: 48.38 kB / 1.067 GB, free: 12.67 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000968/0.2534, allocations: 0.5548 MB / 1.067 GB, free: 12.08 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.156e-05/0.2535, allocations: 0 / 1.067 GB, free: 12.08 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.73e-05/0.2535, allocations: 20 kB / 1.067 GB, free: 12.06 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.035e-05/0.2535, allocations: 11.94 kB / 1.067 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009819/0.2545, allocations: 431.6 kB / 1.068 GB, free: 11.63 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002052/0.2566, allocations: 1.848 MB / 1.069 GB, free: 9.703 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009388/0.2575, allocations: 383.1 kB / 1.07 GB, free: 9.312 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004273/0.258, allocations: 196.1 kB / 1.07 GB, free: 9.117 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.012e-05/0.258, allocations: 11.88 kB / 1.07 GB, free: 9.105 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005692/0.2586, allocations: 253.8 kB / 1.07 GB, free: 8.84 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=35): time 1.553e-06/0.2586, allocations: 0 / 1.07 GB, free: 8.84 MB / 0.8262 GB Notification: Performance of matching and sorting (n=35): time 0.001289/0.2599, allocations: 0.5114 MB / 1.071 GB, free: 8.324 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.485e-05/0.2599, allocations: 85.09 kB / 1.071 GB, free: 8.223 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003917/0.2603, allocations: 397.5 kB / 1.071 GB, free: 7.828 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.607e-05/0.2604, allocations: 41.7 kB / 1.071 GB, free: 7.781 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.000164/0.2606, allocations: 252.1 kB / 1.071 GB, free: 7.527 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 8.351e-05/0.2607, allocations: 102.6 kB / 1.072 GB, free: 7.426 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.771e-05/0.2607, allocations: 69.67 kB / 1.072 GB, free: 7.352 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001215/0.2609, allocations: 354.8 kB / 1.072 GB, free: 6.996 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004314/0.2613, allocations: 169 kB / 1.072 GB, free: 6.832 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000483/0.2618, allocations: 277.8 kB / 1.072 GB, free: 6.52 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008232/0.2626, allocations: 435.3 kB / 1.073 GB, free: 6.047 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.2627, allocations: 4 kB / 1.073 GB, free: 6.043 MB / 0.8262 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.00109/0.2637, allocations: 0.5493 MB / 1.073 GB, free: 5.48 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.928e-05/0.2638, allocations: 29.7 kB / 1.073 GB, free: 5.445 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.2638, allocations: 4.312 kB / 1.073 GB, free: 5.441 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.593e-05/0.2638, allocations: 15.98 kB / 1.073 GB, free: 5.426 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003183/0.2641, allocations: 71.89 kB / 1.073 GB, free: 5.355 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.32e-05/0.2642, allocations: 11.94 kB / 1.073 GB, free: 5.344 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003685/0.2645, allocations: 87.39 kB / 1.074 GB, free: 5.258 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.983e-05/0.2646, allocations: 20 kB / 1.074 GB, free: 5.238 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.0002201/0.2648, allocations: 205.7 kB / 1.074 GB, free: 5.027 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.306e-05/0.2649, allocations: 43.47 kB / 1.074 GB, free: 4.984 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009468/0.2658, allocations: 414.7 kB / 1.074 GB, free: 4.574 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.13e-06/0.2658, allocations: 4 kB / 1.074 GB, free: 4.57 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.087e-06/0.2659, allocations: 0 / 1.074 GB, free: 4.57 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.672e-06/0.2659, allocations: 3.984 kB / 1.074 GB, free: 4.566 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001521/0.2674, allocations: 0.9828 MB / 1.075 GB, free: 3.523 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.2674, allocations: 4.031 kB / 1.075 GB, free: 3.52 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002604/0.2677, allocations: 55.89 kB / 1.075 GB, free: 3.465 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.2677, allocations: 0 / 1.075 GB, free: 3.465 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.45e-05/0.2677, allocations: 8 kB / 1.075 GB, free: 3.457 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.2677, allocations: 0 / 1.075 GB, free: 3.457 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.454e-06/0.2677, allocations: 11.98 kB / 1.075 GB, free: 3.445 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001333/0.2691, allocations: 0.6872 MB / 1.076 GB, free: 2.734 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00014/0.2692, allocations: 152.5 kB / 1.076 GB, free: 2.566 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.465e-05/0.2693, allocations: 8 kB / 1.076 GB, free: 2.559 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003304/0.2696, allocations: 39.95 kB / 1.076 GB, free: 2.52 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001115/0.2697, allocations: 55.94 kB / 1.076 GB, free: 2.465 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.32e-05/0.2698, allocations: 8 kB / 1.076 GB, free: 2.457 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0002586/0.27, allocations: 267.2 kB / 1.076 GB, free: 2.195 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.27, allocations: 0 / 1.076 GB, free: 2.195 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003854/0.2704, allocations: 99.69 kB / 1.077 GB, free: 2.098 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.001625/0.2721, allocations: 1.24 MB / 1.078 GB, free: 0.8281 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000944/0.273, allocations: 459.5 kB / 1.078 GB, free: 376 kB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.586e-06/0.273, allocations: 0 / 1.078 GB, free: 376 kB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0004563/0.2735, allocations: 208 kB / 1.078 GB, free: 168 kB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005473/0.2741, allocations: 87.22 kB / 1.078 GB, free: 84 kB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005938/0.28, allocations: 4.232 MB / 1.083 GB, free: 11.66 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000345/0.2804, allocations: 0.8312 MB / 1.083 GB, free: 10.8 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001989/0.2806, allocations: 51.45 kB / 1.083 GB, free: 10.75 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002377/0.2808, allocations: 159.4 kB / 1.084 GB, free: 10.6 MB / 0.8419 GB Notification: Performance of SimCode: time 3.41e-07/0.2808, allocations: 0 / 1.084 GB, free: 10.6 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9907/1.271, allocations: 8.485 MB / 1.092 GB, free: 2.336 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002062/1.272, allocations: 229.5 kB / 1.092 GB, free: 2.074 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.251/3.523, allocations: 0 / 1.092 GB, free: 2.074 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)