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.001558/0.001558, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001689/0.001689, allocations: 194.2 kB / 16.25 MB, free: 6.629 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.287/1.287, allocations: 222.9 MB / 239.9 MB, free: 4.52 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.605/2.605, allocations: 469.8 MB / 0.7421 GB, free: 7.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001777/0.001777, allocations: 66.25 kB / 0.9082 GB, free: 34.49 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2332/0.235, allocations: 159.2 MB / 1.064 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.003907/0.239, allocations: 3.004 MB / 1.067 GB, free: 11.51 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001614/0.2406, allocations: 1.103 MB / 1.068 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001796/0.2408, allocations: 11.94 kB / 1.068 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.000203/0.241, allocations: 59.52 kB / 1.068 GB, free: 10.33 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001531/0.2412, allocations: 55.52 kB / 1.068 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006512/0.2418, allocations: 319.2 kB / 1.068 GB, free: 9.965 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0006576/0.2425, allocations: 0.7108 MB / 1.069 GB, free: 9.254 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005526/0.243, allocations: 496.5 kB / 1.069 GB, free: 8.766 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002284/0.2433, allocations: 247.1 kB / 1.069 GB, free: 8.523 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000243/0.2435, allocations: 258.7 kB / 1.07 GB, free: 8.27 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 7.913e-05/0.2436, allocations: 68 kB / 1.07 GB, free: 8.203 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001087/0.2437, allocations: 80 kB / 1.07 GB, free: 8.125 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001202/0.2439, allocations: 139.6 kB / 1.07 GB, free: 7.988 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002215/0.2441, allocations: 278.5 kB / 1.07 GB, free: 7.715 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0006233/0.2447, allocations: 0.7204 MB / 1.071 GB, free: 6.992 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.2447, allocations: 0 / 1.071 GB, free: 6.992 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.263e-06/0.2447, allocations: 0 / 1.071 GB, free: 6.992 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.382e-06/0.2447, allocations: 0 / 1.071 GB, free: 6.992 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.001474/0.2462, allocations: 0.8847 MB / 1.072 GB, free: 6.051 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.505e-05/0.2463, allocations: 12.03 kB / 1.072 GB, free: 6.039 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.344e-05/0.2464, allocations: 86.7 kB / 1.072 GB, free: 5.945 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.677e-05/0.2465, allocations: 60.28 kB / 1.072 GB, free: 5.887 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005579/0.247, allocations: 436.5 kB / 1.072 GB, free: 5.422 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.173e-05/0.2471, allocations: 41.36 kB / 1.072 GB, free: 5.383 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.394e-05/0.2472, allocations: 48.38 kB / 1.072 GB, free: 5.336 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009474/0.2481, allocations: 0.5391 MB / 1.073 GB, free: 4.762 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.332e-05/0.2481, allocations: 0 / 1.073 GB, free: 4.762 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.199e-05/0.2482, allocations: 24 kB / 1.073 GB, free: 4.738 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.298e-05/0.2482, allocations: 12 kB / 1.073 GB, free: 4.727 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008824/0.2491, allocations: 395.6 kB / 1.073 GB, free: 4.344 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002086/0.2512, allocations: 1.852 MB / 1.075 GB, free: 2.41 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008519/0.252, allocations: 357.5 kB / 1.076 GB, free: 2.043 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003748/0.2524, allocations: 173.6 kB / 1.076 GB, free: 1.867 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.517e-05/0.2525, allocations: 15.88 kB / 1.076 GB, free: 1.852 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005271/0.253, allocations: 242.7 kB / 1.076 GB, free: 1.594 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=35): time 1.573e-06/0.253, allocations: 0 / 1.076 GB, free: 1.594 MB / 0.8262 GB Notification: Performance of matching and sorting (n=35): time 0.00116/0.2542, allocations: 487.8 kB / 1.076 GB, free: 1.113 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.265e-05/0.2542, allocations: 85.11 kB / 1.076 GB, free: 1.012 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004034/0.2546, allocations: 401.4 kB / 1.077 GB, free: 0.6133 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.67e-05/0.2547, allocations: 45.7 kB / 1.077 GB, free: 0.5625 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001817/0.2549, allocations: 256.3 kB / 1.077 GB, free: 316 kB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 9.204e-05/0.255, allocations: 102.6 kB / 1.077 GB, free: 212 kB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001449/0.2551, allocations: 106.2 kB / 1.077 GB, free: 96 kB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001596/0.2553, allocations: 354.8 kB / 1.078 GB, free: 15.74 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003891/0.2557, allocations: 153 kB / 1.078 GB, free: 15.59 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004624/0.2562, allocations: 269.8 kB / 1.078 GB, free: 15.29 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007644/0.2569, allocations: 407.4 kB / 1.078 GB, free: 14.84 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.257, allocations: 0 / 1.078 GB, free: 14.84 MB / 0.8419 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001025/0.258, allocations: 0.5264 MB / 1.079 GB, free: 14.3 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 3.536e-05/0.258, allocations: 45.62 kB / 1.079 GB, free: 14.25 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.258, allocations: 0 / 1.079 GB, free: 14.25 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.395e-05/0.2581, allocations: 8 kB / 1.079 GB, free: 14.24 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000294/0.2584, allocations: 67.89 kB / 1.079 GB, free: 14.18 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.553e-05/0.2584, allocations: 11.94 kB / 1.079 GB, free: 14.16 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003323/0.2587, allocations: 71.48 kB / 1.079 GB, free: 14.09 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.04e-05/0.2588, allocations: 23.98 kB / 1.079 GB, free: 14.07 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.0002152/0.259, allocations: 209.6 kB / 1.079 GB, free: 13.86 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.985e-05/0.2591, allocations: 47.38 kB / 1.079 GB, free: 13.81 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008848/0.2599, allocations: 385.4 kB / 1.08 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.763e-06/0.26, allocations: 7.984 kB / 1.08 GB, free: 13.42 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.26, allocations: 4 kB / 1.08 GB, free: 13.41 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.26, allocations: 4 kB / 1.08 GB, free: 13.41 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001472/0.2615, allocations: 0.9437 MB / 1.081 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.2615, allocations: 0 / 1.081 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002421/0.2617, allocations: 51.89 kB / 1.081 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.891e-06/0.2617, allocations: 4 kB / 1.081 GB, free: 12.35 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.867e-05/0.2618, allocations: 11.98 kB / 1.081 GB, free: 12.34 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.2618, allocations: 3.984 kB / 1.081 GB, free: 12.34 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.069e-06/0.2618, allocations: 4.031 kB / 1.081 GB, free: 12.33 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001228/0.263, allocations: 0.6481 MB / 1.081 GB, free: 11.66 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001421/0.2632, allocations: 148.6 kB / 1.082 GB, free: 11.5 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.457e-05/0.2632, allocations: 12 kB / 1.082 GB, free: 11.48 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002988/0.2635, allocations: 35.95 kB / 1.082 GB, free: 11.45 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000115/0.2637, allocations: 47.88 kB / 1.082 GB, free: 11.4 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.358e-05/0.2637, allocations: 12.06 kB / 1.082 GB, free: 11.39 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002634/0.264, allocations: 267.2 kB / 1.082 GB, free: 11.13 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.6e-07/0.264, allocations: 4 kB / 1.082 GB, free: 11.13 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003591/0.2643, allocations: 99.69 kB / 1.082 GB, free: 11.03 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.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.001571/0.2659, allocations: 1.215 MB / 1.083 GB, free: 9.785 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0009739/0.2669, allocations: 454.9 kB / 1.084 GB, free: 9.328 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.2669, allocations: 0 / 1.084 GB, free: 9.328 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0004345/0.2673, allocations: 192.5 kB / 1.084 GB, free: 9.141 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004843/0.2678, allocations: 90.62 kB / 1.084 GB, free: 9.047 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00577/0.2736, allocations: 4.15 MB / 1.088 GB, free: 4.715 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004063/0.274, allocations: 0.8235 MB / 1.089 GB, free: 3.863 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001892/0.2742, allocations: 51.45 kB / 1.089 GB, free: 3.812 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002402/0.2745, allocations: 163.4 kB / 1.089 GB, free: 3.652 MB / 0.8419 GB Notification: Performance of SimCode: time 2.71e-07/0.2745, allocations: 3.938 kB / 1.089 GB, free: 3.648 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.905/5.179, allocations: 8.865 MB / 1.098 GB, free: 10.97 MB / 0.8575 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002931/5.18, allocations: 218.9 kB / 1.098 GB, free: 10.71 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.043/7.223, allocations: 4.688 kB / 1.098 GB, free: 10.71 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)