Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.302/1.302, allocations: 251.5 MB / 266.7 MB, free: 11.04 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009266/0.0009267, allocations: 181.4 kB / 325.9 MB, free: 2.66 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.371/1.371, allocations: 205 MB / 0.576 GB, free: 20.91 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006944/0.0006945, allocations: 85.53 kB / 0.6797 GB, free: 14.67 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0002767/0.0002768, allocations: 8.688 kB / 0.7933 GB, free: 136.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1406/0.1409, allocations: 105.4 MB / 0.8962 GB, free: 68.02 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.002237/0.1432, allocations: 2.69 MB / 0.8988 GB, free: 65.31 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.00131/0.1445, allocations: 1.15 MB / 0.9 GB, free: 64.15 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001769/0.1447, allocations: 19.88 kB / 0.9 GB, free: 64.13 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001858/0.1449, allocations: 63.45 kB / 0.9 GB, free: 64.07 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.00013/0.145, allocations: 51.52 kB / 0.9001 GB, free: 64.02 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004952/0.1455, allocations: 307.7 kB / 0.9004 GB, free: 63.71 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0003613/0.1459, allocations: 0.652 MB / 0.901 GB, free: 63.06 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003508/0.1462, allocations: 403.7 kB / 0.9014 GB, free: 62.66 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000122/0.1464, allocations: 171.1 kB / 0.9016 GB, free: 62.5 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001379/0.1465, allocations: 186.8 kB / 0.9017 GB, free: 62.31 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 4.08e-05/0.1466, allocations: 20 kB / 0.9018 GB, free: 62.29 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 6.757e-05/0.1466, allocations: 27.94 kB / 0.9018 GB, free: 62.27 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 5.646e-05/0.1467, allocations: 83.59 kB / 0.9019 GB, free: 62.18 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0001022/0.1468, allocations: 206.7 kB / 0.9021 GB, free: 61.98 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0003336/0.1471, allocations: 0.646 MB / 0.9027 GB, free: 61.33 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.1472, allocations: 4 kB / 0.9027 GB, free: 61.33 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.903e-06/0.1472, allocations: 4 kB / 0.9027 GB, free: 61.32 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 6.492e-06/0.1472, allocations: 0 / 0.9027 GB, free: 61.32 MB / 0.6042 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.001094/0.1483, allocations: 0.7848 MB / 0.9035 GB, free: 60.48 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 2.962e-05/0.1483, allocations: 12.03 kB / 0.9035 GB, free: 60.47 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.391e-05/0.1484, allocations: 82.7 kB / 0.9036 GB, free: 60.38 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.32e-05/0.1485, allocations: 60.28 kB / 0.9036 GB, free: 60.32 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004078/0.1489, allocations: 444.5 kB / 0.904 GB, free: 59.85 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.764e-05/0.1489, allocations: 41.36 kB / 0.9041 GB, free: 59.81 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.203e-05/0.149, allocations: 48.38 kB / 0.9041 GB, free: 59.76 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007277/0.1497, allocations: 0.5509 MB / 0.9047 GB, free: 59.17 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.251e-05/0.1497, allocations: 3.938 kB / 0.9047 GB, free: 59.17 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.437e-05/0.1498, allocations: 20 kB / 0.9047 GB, free: 59.15 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.326e-06/0.1498, allocations: 12 kB / 0.9047 GB, free: 59.14 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007642/0.1505, allocations: 419.7 kB / 0.9051 GB, free: 58.73 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001462/0.152, allocations: 1.852 MB / 0.9069 GB, free: 56.8 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007282/0.1528, allocations: 366.9 kB / 0.9073 GB, free: 56.43 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000317/0.1531, allocations: 188.6 kB / 0.9074 GB, free: 56.24 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.826e-05/0.1531, allocations: 4 kB / 0.9074 GB, free: 56.24 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004191/0.1535, allocations: 229.5 kB / 0.9077 GB, free: 56 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=34): time 1.653e-06/0.1536, allocations: 7.938 kB / 0.9077 GB, free: 56 MB / 0.6042 GB Notification: Performance of matching and sorting (n=34): time 0.0009852/0.1545, allocations: 0.5014 MB / 0.9082 GB, free: 55.49 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.245e-05/0.1546, allocations: 59.41 kB / 0.9082 GB, free: 55.42 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002769/0.1549, allocations: 405.5 kB / 0.9086 GB, free: 55.02 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 2.989e-05/0.1549, allocations: 41.7 kB / 0.9086 GB, free: 54.97 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001034/0.155, allocations: 256.1 kB / 0.9089 GB, free: 54.71 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 5.145e-05/0.1551, allocations: 94.7 kB / 0.909 GB, free: 54.62 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.59e-05/0.1551, allocations: 61.69 kB / 0.909 GB, free: 54.55 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.483e-05/0.1552, allocations: 354.8 kB / 0.9094 GB, free: 54.2 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000342/0.1555, allocations: 169 kB / 0.9095 GB, free: 54.03 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003577/0.1559, allocations: 277.8 kB / 0.9098 GB, free: 53.71 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000643/0.1566, allocations: 427.4 kB / 0.9102 GB, free: 53.25 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.1566, allocations: 0 / 0.9102 GB, free: 53.25 MB / 0.6042 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0008298/0.1574, allocations: 0.5419 MB / 0.9107 GB, free: 52.7 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.184e-05/0.1574, allocations: 29.7 kB / 0.9108 GB, free: 52.66 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.1574, allocations: 4 kB / 0.9108 GB, free: 52.66 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.286e-05/0.1575, allocations: 8 kB / 0.9108 GB, free: 52.65 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002668/0.1577, allocations: 80.08 kB / 0.9108 GB, free: 52.57 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.1577, allocations: 15.98 kB / 0.9109 GB, free: 52.55 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003066/0.1581, allocations: 79.41 kB / 0.9109 GB, free: 52.48 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.32e-05/0.1581, allocations: 31.86 kB / 0.911 GB, free: 52.45 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 33 ($PRE.preHeatCoil.toOn.enableFire,$PRE.preHeatCoil.toOff.enableFire,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 (58): * Single equations (assignments): 57 * 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.0001528/0.1583, allocations: 205.7 kB / 0.9112 GB, free: 52.24 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.943e-05/0.1583, allocations: 43.52 kB / 0.9112 GB, free: 52.2 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007464/0.1591, allocations: 409.5 kB / 0.9116 GB, free: 51.79 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.1591, allocations: 4 kB / 0.9116 GB, free: 51.78 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.1591, allocations: 0 / 0.9116 GB, free: 51.78 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.628e-06/0.1591, allocations: 4 kB / 0.9116 GB, free: 51.78 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001133/0.1602, allocations: 0.9751 MB / 0.9126 GB, free: 50.74 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.1602, allocations: 0 / 0.9126 GB, free: 50.74 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002202/0.1605, allocations: 55.89 kB / 0.9126 GB, free: 50.69 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.955e-06/0.1605, allocations: 8.031 kB / 0.9126 GB, free: 50.68 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.056e-05/0.1605, allocations: 4 kB / 0.9126 GB, free: 50.68 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/0.1605, allocations: 4 kB / 0.9126 GB, free: 50.67 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.1605, allocations: 0 / 0.9126 GB, free: 50.67 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001017/0.1615, allocations: 0.6674 MB / 0.9133 GB, free: 49.98 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 9.387e-05/0.1616, allocations: 152.4 kB / 0.9134 GB, free: 49.82 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.855e-05/0.1617, allocations: 15.98 kB / 0.9134 GB, free: 49.8 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002827/0.162, allocations: 48.02 kB / 0.9135 GB, free: 49.75 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.962e-05/0.1621, allocations: 43.89 kB / 0.9135 GB, free: 49.71 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.085e-05/0.1621, allocations: 15.98 kB / 0.9135 GB, free: 49.7 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001814/0.1623, allocations: 263.2 kB / 0.9138 GB, free: 49.44 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1623, allocations: 0 / 0.9138 GB, free: 49.44 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0003028/0.1626, allocations: 95.69 kB / 0.9139 GB, free: 49.34 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (preHeatCoil.preHeaCoiCon.I.y) * Number of discrete variables: 20 (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: 4 (TMix.count,preHeatCoil.pumOff.newActive,preHeatCoil.pumOn.newActive,preHeatCoil.preHeaOn.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.001183/0.1638, allocations: 1.226 MB / 0.9151 GB, free: 48.09 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0007309/0.1645, allocations: 459.2 kB / 0.9155 GB, free: 47.62 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.1646, allocations: 0 / 0.9155 GB, free: 47.62 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0003421/0.1649, allocations: 188.4 kB / 0.9157 GB, free: 47.44 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004566/0.1654, allocations: 93.55 kB / 0.9158 GB, free: 47.35 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004366/0.1697, allocations: 4.203 MB / 0.9199 GB, free: 42.97 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001765/0.1699, allocations: 0.8237 MB / 0.9207 GB, free: 42.12 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0001755/0.1701, allocations: 55.44 kB / 0.9207 GB, free: 42.06 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001798/0.1703, allocations: 159.4 kB / 0.9209 GB, free: 41.91 MB / 0.6042 GB Notification: Performance of SimCode: time 3.41e-07/0.1703, allocations: 0 / 0.9209 GB, free: 41.91 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.386/0.5563, allocations: 8.449 MB / 0.9292 GB, free: 33.66 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001411/0.5565, allocations: 241 kB / 0.9294 GB, free: 33.4 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.18/2.737, allocations: 2.188 kB / 0.9294 GB, free: 33.4 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil.fmu > Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe 2>&1)