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.001176/0.001176, allocations: 90.44 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.00618/0.00618, allocations: 172.8 kB / 16.26 MB, free: 6.676 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.265/1.265, 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 10.1.0-maint.10.0.x/package.mo): time 2.451/2.451, allocations: 437.8 MB / 0.7121 GB, free: 6.996 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003055/0.0003054, allocations: 8 kB / 0.8729 GB, free: 3.23 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5249/0.5252, allocations: 153.8 MB / 1.023 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.002798/0.5281, allocations: 2.611 MB / 1.026 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001573/0.5297, allocations: 1.099 MB / 1.027 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001814/0.5298, allocations: 11.94 kB / 1.027 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001771/0.53, allocations: 59.45 kB / 1.027 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.00016/0.5302, allocations: 59.56 kB / 1.027 GB, free: 12.02 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006077/0.5308, allocations: 303.3 kB / 1.027 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0005557/0.5314, allocations: 0.652 MB / 1.028 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004842/0.5319, allocations: 420.7 kB / 1.028 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00017/0.5321, allocations: 167.1 kB / 1.028 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001896/0.5323, allocations: 190.8 kB / 1.029 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.334e-05/0.5323, allocations: 24 kB / 1.029 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 7.857e-05/0.5324, allocations: 31.98 kB / 1.029 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 8.023e-05/0.5325, allocations: 87.55 kB / 1.029 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001683/0.5327, allocations: 240.3 kB / 1.029 GB, free: 9.914 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004907/0.5332, allocations: 0.6405 MB / 1.03 GB, free: 9.273 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.5332, allocations: 0 / 1.03 GB, free: 9.273 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.212e-06/0.5332, allocations: 0 / 1.03 GB, free: 9.273 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.132e-06/0.5332, allocations: 0 / 1.03 GB, free: 9.273 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.001351/0.5345, allocations: 0.7974 MB / 1.03 GB, free: 8.418 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.349e-05/0.5346, allocations: 19.92 kB / 1.03 GB, free: 8.398 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.043e-05/0.5347, allocations: 82.7 kB / 1.03 GB, free: 8.309 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.187e-05/0.5348, allocations: 64.28 kB / 1.03 GB, free: 8.246 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005384/0.5353, allocations: 436.6 kB / 1.031 GB, free: 7.777 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.771e-05/0.5354, allocations: 41.38 kB / 1.031 GB, free: 7.738 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.469e-05/0.5354, allocations: 48.38 kB / 1.031 GB, free: 7.691 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009564/0.5364, allocations: 0.5509 MB / 1.032 GB, free: 7.105 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.301e-05/0.5364, allocations: 0 / 1.032 GB, free: 7.105 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.2e-05/0.5365, allocations: 19.94 kB / 1.032 GB, free: 7.086 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.096e-05/0.5365, allocations: 16 kB / 1.032 GB, free: 7.07 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009803/0.5375, allocations: 427.7 kB / 1.032 GB, free: 6.652 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001983/0.5395, allocations: 1.852 MB / 1.034 GB, free: 4.719 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009252/0.5404, allocations: 385.9 kB / 1.034 GB, free: 4.324 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00041/0.5408, allocations: 193.6 kB / 1.034 GB, free: 4.129 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.574e-05/0.5409, allocations: 3.938 kB / 1.034 GB, free: 4.125 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005602/0.5414, allocations: 266.6 kB / 1.035 GB, free: 3.848 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=35): time 1.613e-06/0.5415, allocations: 0 / 1.035 GB, free: 3.848 MB / 0.7794 GB Notification: Performance of matching and sorting (n=35): time 0.001266/0.5427, allocations: 0.5112 MB / 1.035 GB, free: 3.332 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.718e-05/0.5428, allocations: 93.08 kB / 1.035 GB, free: 3.223 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003779/0.5432, allocations: 397.6 kB / 1.036 GB, free: 2.828 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.589e-05/0.5432, allocations: 45.69 kB / 1.036 GB, free: 2.777 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001539/0.5434, allocations: 248.2 kB / 1.036 GB, free: 2.531 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 7.853e-05/0.5435, allocations: 98.73 kB / 1.036 GB, free: 2.434 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.932e-05/0.5436, allocations: 69.67 kB / 1.036 GB, free: 2.359 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001088/0.5437, allocations: 350.8 kB / 1.036 GB, free: 2.008 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000429/0.5441, allocations: 169 kB / 1.036 GB, free: 1.844 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004779/0.5446, allocations: 285.8 kB / 1.037 GB, free: 1.523 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000828/0.5454, allocations: 435.4 kB / 1.037 GB, free: 1.051 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.5454, allocations: 0 / 1.037 GB, free: 1.051 MB / 0.7794 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001079/0.5465, allocations: 0.5493 MB / 1.038 GB, free: 500 kB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.94e-05/0.5466, allocations: 37.69 kB / 1.038 GB, free: 456 kB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.5466, allocations: 4 kB / 1.038 GB, free: 452 kB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.221e-05/0.5466, allocations: 4 kB / 1.038 GB, free: 448 kB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003184/0.5469, allocations: 79.83 kB / 1.038 GB, free: 368 kB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.076e-05/0.5469, allocations: 7.984 kB / 1.038 GB, free: 360 kB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003681/0.5473, allocations: 91.61 kB / 1.038 GB, free: 268 kB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.96e-05/0.5474, allocations: 23.92 kB / 1.038 GB, free: 244 kB / 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.0002027/0.5476, allocations: 209.7 kB / 1.038 GB, free: 28 kB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.489e-05/0.5476, allocations: 43.64 kB / 1.038 GB, free: 15.98 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009344/0.5486, allocations: 413.4 kB / 1.039 GB, free: 15.57 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.5486, allocations: 4 kB / 1.039 GB, free: 15.57 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.5486, allocations: 0 / 1.039 GB, free: 15.57 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.503e-06/0.5486, allocations: 3.984 kB / 1.039 GB, free: 15.56 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001489/0.5501, allocations: 0.9827 MB / 1.04 GB, free: 14.52 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.5501, allocations: 3.984 kB / 1.04 GB, free: 14.52 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002599/0.5504, allocations: 51.89 kB / 1.04 GB, free: 14.46 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.488e-06/0.5504, allocations: 4 kB / 1.04 GB, free: 14.46 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.502e-05/0.5504, allocations: 16.02 kB / 1.04 GB, free: 14.45 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.356e-06/0.5504, allocations: 4 kB / 1.04 GB, free: 14.44 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.5505, allocations: 0 / 1.04 GB, free: 14.44 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001287/0.5517, allocations: 0.6796 MB / 1.04 GB, free: 13.74 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000127/0.5519, allocations: 148.4 kB / 1.04 GB, free: 13.57 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.124e-05/0.5519, allocations: 12 kB / 1.04 GB, free: 13.56 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003349/0.5523, allocations: 48.02 kB / 1.04 GB, free: 13.52 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001075/0.5524, allocations: 47.88 kB / 1.041 GB, free: 13.47 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.349e-05/0.5524, allocations: 12 kB / 1.041 GB, free: 13.46 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0002524/0.5527, allocations: 267.2 kB / 1.041 GB, free: 13.19 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5527, allocations: 0 / 1.041 GB, free: 13.19 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0003737/0.5531, allocations: 95.75 kB / 1.041 GB, free: 13.1 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.001569/0.5547, allocations: 1.249 MB / 1.042 GB, free: 11.81 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0009285/0.5556, allocations: 459.6 kB / 1.043 GB, free: 11.35 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.5556, allocations: 192 / 1.043 GB, free: 11.35 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0004457/0.5561, allocations: 195.8 kB / 1.043 GB, free: 11.16 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005385/0.5566, allocations: 96.14 kB / 1.043 GB, free: 11.07 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005677/0.5623, allocations: 4.224 MB / 1.047 GB, free: 6.672 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000313/0.5626, allocations: 0.8351 MB / 1.048 GB, free: 5.812 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0001948/0.5628, allocations: 51.44 kB / 1.048 GB, free: 5.758 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002299/0.5631, allocations: 159.4 kB / 1.048 GB, free: 5.602 MB / 0.795 GB Notification: Performance of SimCode: time 3.3e-07/0.5631, allocations: 0 / 1.048 GB, free: 5.602 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.9/2.463, allocations: 8.458 MB / 1.056 GB, free: 13.33 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002099/2.464, allocations: 222.8 kB / 1.056 GB, free: 13.07 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.839/4.303, allocations: 0 / 1.056 GB, free: 13.07 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)