Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,fileNamePrefix="Buildings_maint_8_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_8_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 8.0.1-maint.8.0.x/package.mo): time 1.409/1.409, allocations: 288.4 MB / 303.6 MB, free: 8.184 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009328/0.0009328, allocations: 187.1 kB / 372.2 MB, free: 10.11 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.128/1.128, allocations: 205.4 MB / 0.631 GB, free: 9.844 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006284/0.0006284, allocations: 98.19 kB / 0.7444 GB, free: 5.77 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003202/0.0003202, allocations: 11.94 kB / 0.8676 GB, free: 141.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1443/0.1447, allocations: 115.3 MB / 0.9802 GB, free: 27.23 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.002215/0.1469, allocations: 2.511 MB / 0.9826 GB, free: 24.7 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001579/0.1485, allocations: 1.111 MB / 0.9837 GB, free: 23.57 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003189/0.1489, allocations: 11.94 kB / 0.9837 GB, free: 23.56 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001948/0.1491, allocations: 51.52 kB / 0.9838 GB, free: 23.51 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0001714/0.1492, allocations: 55.5 kB / 0.9838 GB, free: 23.46 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.000578/0.1498, allocations: 234.9 kB / 0.9841 GB, free: 23.23 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0004205/0.1503, allocations: 0.6092 MB / 0.9847 GB, free: 22.62 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003829/0.1507, allocations: 417 kB / 0.985 GB, free: 22.21 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001298/0.1508, allocations: 167.1 kB / 0.9852 GB, free: 22.04 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000139/0.1509, allocations: 183 kB / 0.9854 GB, free: 21.86 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 3.823e-05/0.151, allocations: 19.94 kB / 0.9854 GB, free: 21.84 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.637e-05/0.1511, allocations: 27.98 kB / 0.9854 GB, free: 21.82 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 5.92e-05/0.1511, allocations: 79.67 kB / 0.9855 GB, free: 21.74 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 0.0001094/0.1512, allocations: 220.5 kB / 0.9857 GB, free: 21.52 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0002999/0.1515, allocations: 0.5493 MB / 0.9863 GB, free: 20.96 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.1516, allocations: 0 / 0.9863 GB, free: 20.96 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.263e-06/0.1516, allocations: 0 / 0.9863 GB, free: 20.96 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.271e-06/0.1516, allocations: 0 / 0.9863 GB, free: 20.96 MB / 0.6198 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.00112/0.1527, allocations: 0.7809 MB / 0.987 GB, free: 20.12 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.032e-05/0.1527, allocations: 8.031 kB / 0.987 GB, free: 20.12 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.985e-05/0.1528, allocations: 86.7 kB / 0.9871 GB, free: 20.02 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.073e-05/0.1529, allocations: 60.19 kB / 0.9872 GB, free: 19.96 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004244/0.1533, allocations: 444.6 kB / 0.9876 GB, free: 19.5 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.801e-05/0.1534, allocations: 37.38 kB / 0.9876 GB, free: 19.46 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.288e-05/0.1534, allocations: 48.38 kB / 0.9877 GB, free: 19.41 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007678/0.1542, allocations: 0.547 MB / 0.9882 GB, free: 18.83 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.306e-05/0.1542, allocations: 7.938 kB / 0.9882 GB, free: 18.82 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.546e-05/0.1542, allocations: 16 kB / 0.9882 GB, free: 18.8 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.142e-05/0.1543, allocations: 12 kB / 0.9882 GB, free: 18.79 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007827/0.1551, allocations: 423.6 kB / 0.9886 GB, free: 18.38 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001486/0.1565, allocations: 1.86 MB / 0.9905 GB, free: 16.44 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007432/0.1573, allocations: 363.5 kB / 0.9908 GB, free: 16.07 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003292/0.1576, allocations: 192.7 kB / 0.991 GB, free: 15.88 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.958e-05/0.1577, allocations: 4 kB / 0.991 GB, free: 15.88 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004411/0.1581, allocations: 229.4 kB / 0.9912 GB, free: 15.64 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=34): time 1.543e-06/0.1581, allocations: 0 / 0.9912 GB, free: 15.64 MB / 0.6198 GB Notification: Performance of matching and sorting (n=34): time 0.001006/0.1591, allocations: 0.4935 MB / 0.9917 GB, free: 15.14 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.225e-05/0.1592, allocations: 59.41 kB / 0.9917 GB, free: 15.07 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002742/0.1595, allocations: 405.3 kB / 0.9921 GB, free: 14.68 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 3.234e-05/0.1595, allocations: 45.7 kB / 0.9922 GB, free: 14.62 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001028/0.1596, allocations: 248.2 kB / 0.9924 GB, free: 14.38 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 4.947e-05/0.1597, allocations: 94.73 kB / 0.9925 GB, free: 14.29 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.874e-05/0.1597, allocations: 12 kB / 0.9925 GB, free: 14.27 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.162e-05/0.1597, allocations: 354.8 kB / 0.9929 GB, free: 13.92 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003439/0.1601, allocations: 165 kB / 0.993 GB, free: 13.76 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003684/0.1605, allocations: 273.8 kB / 0.9933 GB, free: 13.45 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006339/0.1611, allocations: 423.4 kB / 0.9937 GB, free: 12.98 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.1611, allocations: 0 / 0.9937 GB, free: 12.98 MB / 0.6198 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0008423/0.162, allocations: 0.5376 MB / 0.9942 GB, free: 12.43 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.139e-05/0.162, allocations: 33.7 kB / 0.9942 GB, free: 12.39 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.162, allocations: 3.938 kB / 0.9942 GB, free: 12.39 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.275e-05/0.162, allocations: 8 kB / 0.9942 GB, free: 12.38 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002768/0.1623, allocations: 88.06 kB / 0.9943 GB, free: 12.3 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.736e-06/0.1623, allocations: 8 kB / 0.9943 GB, free: 12.29 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003063/0.1626, allocations: 79.48 kB / 0.9944 GB, free: 12.21 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.503e-05/0.1627, allocations: 27.94 kB / 0.9944 GB, free: 12.18 MB / 0.6198 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,$whenCondition2,$whenCondition1,$PRE.TMix.T_start,TMix.T_start,$PRE.TMix.count,TMix.count,$PRE.preHeatCoil.preHeaOn.y,preHeatCoil.preHeaOn.y,preHeatCoil.pumOff.active,$PRE.preHeatCoil.pumOff.localActive,preHeatCoil.pumOff.localActive,$PRE.preHeatCoil.pumOff.newActive,preHeatCoil.pumOff.newActive,$PRE.preHeatCoil.pumOff.oldActive,preHeatCoil.pumOff.oldActive,preHeatCoil.toOn.enableFire,preHeatCoil.stateGraphRoot.activeSteps,$PRE.preHeatCoil.pumOn.localActive,preHeatCoil.pumOn.localActive,$PRE.preHeatCoil.pumOn.newActive,preHeatCoil.pumOn.newActive,$PRE.preHeatCoil.pumOn.oldActive,preHeatCoil.pumOn.oldActive,preHeatCoil.pumOn.active,preHeatCoil.toOff.enableFire,preHeatCoil.toOff.fire,$PRE.preHeatCoil.toOff.t_start,preHeatCoil.toOff.t_start,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001548/0.1628, allocations: 205.6 kB / 0.9946 GB, free: 11.97 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.793e-05/0.1629, allocations: 43.44 kB / 0.9947 GB, free: 11.93 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007608/0.1637, allocations: 405.5 kB / 0.9951 GB, free: 11.52 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.1637, allocations: 8 kB / 0.9951 GB, free: 11.52 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.1637, allocations: 0 / 0.9951 GB, free: 11.52 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.573e-06/0.1637, allocations: 7.969 kB / 0.9951 GB, free: 11.51 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00115/0.1648, allocations: 0.975 MB / 0.996 GB, free: 10.47 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.1649, allocations: 0 / 0.996 GB, free: 10.47 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002248/0.1651, allocations: 55.94 kB / 0.9961 GB, free: 10.42 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.965e-06/0.1651, allocations: 4 kB / 0.9961 GB, free: 10.41 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.108e-05/0.1651, allocations: 7.984 kB / 0.9961 GB, free: 10.41 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.1651, allocations: 4 kB / 0.9961 GB, free: 10.4 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.1651, allocations: 0 / 0.9961 GB, free: 10.4 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001029/0.1662, allocations: 0.6669 MB / 0.9968 GB, free: 9.715 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 9.274e-05/0.1663, allocations: 144.6 kB / 0.9969 GB, free: 9.555 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.408e-05/0.1663, allocations: 12 kB / 0.9969 GB, free: 9.543 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002822/0.1666, allocations: 52.02 kB / 0.997 GB, free: 9.492 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.244e-05/0.1667, allocations: 47.86 kB / 0.997 GB, free: 9.445 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.082e-05/0.1667, allocations: 12 kB / 0.997 GB, free: 9.434 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001816/0.1669, allocations: 267.2 kB / 0.9973 GB, free: 9.176 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1669, allocations: 0 / 0.9973 GB, free: 9.176 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.000301/0.1672, allocations: 99.69 kB / 0.9974 GB, free: 9.078 MB / 0.6198 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001194/0.1684, allocations: 1.219 MB / 0.9985 GB, free: 7.832 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0007335/0.1692, allocations: 455.6 kB / 0.999 GB, free: 7.375 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.1692, allocations: 4.062 kB / 0.999 GB, free: 7.371 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0003534/0.1695, allocations: 191.8 kB / 0.9992 GB, free: 7.184 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004401/0.17, allocations: 93.5 kB / 0.9993 GB, free: 7.094 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003227/0.1732, allocations: 2.531 MB / 1.002 GB, free: 4.465 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001742/0.1734, allocations: 0.8273 MB / 1.003 GB, free: 3.609 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001693/0.1736, allocations: 59.38 kB / 1.003 GB, free: 3.551 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001899/0.1738, allocations: 163.4 kB / 1.003 GB, free: 3.391 MB / 0.6198 GB Notification: Performance of SimCode: time 2.1e-07/0.1738, allocations: 0 / 1.003 GB, free: 3.391 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6276/0.8014, allocations: 8.619 MB / 1.011 GB, free: 10.99 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002381/0.8017, allocations: 212.2 kB / 1.011 GB, free: 10.75 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.215/3.017, allocations: 2.188 kB / 1.011 GB, free: 10.75 MB / 0.6355 GB (rm -f Buildings_maint.8.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil.fmu > Buildings_maint.8.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe 2>&1)