Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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_8_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,fileNamePrefix="Buildings_8_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.001028/0.001028, allocations: 104 kB / 15.6 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00105/0.00105, allocations: 195.9 kB / 16.53 MB, free: 6.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.256/1.256, allocations: 205.1 MB / 222.4 MB, free: 4.391 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.568/1.568, allocations: 292.3 MB / 0.5489 GB, free: 12.81 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0013/0.0013, allocations: 73.19 kB / 0.6716 GB, free: 26.12 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1677/0.169, allocations: 114.5 MB / 0.7835 GB, free: 13.38 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.004014/0.173, allocations: 2.932 MB / 0.7863 GB, free: 10.42 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.00182/0.1749, allocations: 1.154 MB / 0.7875 GB, free: 9.254 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001876/0.1751, allocations: 15.94 kB / 0.7875 GB, free: 9.238 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0002129/0.1753, allocations: 79.12 kB / 0.7876 GB, free: 9.16 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001569/0.1755, allocations: 79.2 kB / 0.7876 GB, free: 9.082 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006344/0.1761, allocations: 338.3 kB / 0.788 GB, free: 8.754 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0005732/0.1767, allocations: 0.7107 MB / 0.7886 GB, free: 8.043 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004969/0.1772, allocations: 496.4 kB / 0.7891 GB, free: 7.551 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000202/0.1774, allocations: 247.1 kB / 0.7894 GB, free: 7.309 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002196/0.1777, allocations: 246.8 kB / 0.7896 GB, free: 7.066 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 7.605e-05/0.1777, allocations: 68 kB / 0.7897 GB, free: 7 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001079/0.1778, allocations: 79.92 kB / 0.7897 GB, free: 6.922 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001079/0.178, allocations: 139.6 kB / 0.7899 GB, free: 6.785 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001846/0.1782, allocations: 278.6 kB / 0.7901 GB, free: 6.512 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0005235/0.1787, allocations: 0.7165 MB / 0.7908 GB, free: 5.793 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.1787, allocations: 0 / 0.7908 GB, free: 5.793 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.533e-06/0.1787, allocations: 0 / 0.7908 GB, free: 5.793 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.783e-06/0.1787, allocations: 0 / 0.7908 GB, free: 5.793 MB / 0.6075 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.001387/0.1801, allocations: 0.8781 MB / 0.7917 GB, free: 4.859 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.176e-05/0.1801, allocations: 8.031 kB / 0.7917 GB, free: 4.852 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.293e-05/0.1802, allocations: 86.7 kB / 0.7918 GB, free: 4.758 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.262e-05/0.1803, allocations: 60.19 kB / 0.7918 GB, free: 4.699 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005223/0.1809, allocations: 440.6 kB / 0.7923 GB, free: 4.227 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.686e-05/0.1809, allocations: 45.38 kB / 0.7923 GB, free: 4.18 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.878e-05/0.181, allocations: 44.38 kB / 0.7923 GB, free: 4.137 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008649/0.1819, allocations: 0.5353 MB / 0.7929 GB, free: 3.57 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.352e-05/0.1819, allocations: 3.938 kB / 0.7929 GB, free: 3.566 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.08e-05/0.1819, allocations: 24 kB / 0.7929 GB, free: 3.543 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.111e-05/0.1819, allocations: 12 kB / 0.7929 GB, free: 3.531 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008934/0.1828, allocations: 403.7 kB / 0.7933 GB, free: 3.133 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001877/0.1847, allocations: 1.837 MB / 0.7951 GB, free: 1.219 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008323/0.1856, allocations: 349.9 kB / 0.7954 GB, free: 0.8711 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003653/0.186, allocations: 172.7 kB / 0.7956 GB, free: 0.6992 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.392e-05/0.186, allocations: 7.938 kB / 0.7956 GB, free: 0.6914 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000482/0.1865, allocations: 213.5 kB / 0.7958 GB, free: 484 kB / 0.6075 GB Notification: Performance of pre-optimization done (n=34): time 1.573e-06/0.1865, allocations: 0 / 0.7958 GB, free: 484 kB / 0.6075 GB Notification: Performance of matching and sorting (n=34): time 0.001135/0.1876, allocations: 474.8 kB / 0.7962 GB, free: 4 kB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.317e-05/0.1877, allocations: 59.41 kB / 0.7963 GB, free: 15.93 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003729/0.1881, allocations: 405.3 kB / 0.7967 GB, free: 15.53 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 3.963e-05/0.1881, allocations: 45.7 kB / 0.7967 GB, free: 15.48 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001567/0.1883, allocations: 260.2 kB / 0.797 GB, free: 15.22 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 6.896e-05/0.1883, allocations: 94.69 kB / 0.7971 GB, free: 15.13 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001428/0.1885, allocations: 106.1 kB / 0.7972 GB, free: 15.02 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001154/0.1886, allocations: 354.8 kB / 0.7975 GB, free: 14.66 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003916/0.189, allocations: 153 kB / 0.7977 GB, free: 14.51 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004374/0.1895, allocations: 265.8 kB / 0.7979 GB, free: 14.21 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007368/0.1902, allocations: 403.4 kB / 0.7983 GB, free: 13.77 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/0.1902, allocations: 0 / 0.7983 GB, free: 13.77 MB / 0.6231 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0009795/0.1912, allocations: 0.5148 MB / 0.7988 GB, free: 13.24 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.941e-05/0.1912, allocations: 33.69 kB / 0.7988 GB, free: 13.2 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.1913, allocations: 4 kB / 0.7988 GB, free: 13.2 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.472e-05/0.1913, allocations: 8 kB / 0.7988 GB, free: 13.19 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002955/0.1916, allocations: 71.83 kB / 0.7989 GB, free: 13.12 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.095e-05/0.1916, allocations: 11.98 kB / 0.7989 GB, free: 13.11 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000337/0.1919, allocations: 67.41 kB / 0.799 GB, free: 13.04 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.82e-05/0.192, allocations: 31.95 kB / 0.799 GB, free: 13.01 MB / 0.6231 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.0001883/0.1922, allocations: 202.3 kB / 0.7992 GB, free: 12.8 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.127e-05/0.1922, allocations: 43.52 kB / 0.7992 GB, free: 12.76 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008641/0.1931, allocations: 386.1 kB / 0.7996 GB, free: 12.38 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.1931, allocations: 4 kB / 0.7996 GB, free: 12.38 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/0.1931, allocations: 4 kB / 0.7996 GB, free: 12.37 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.1931, allocations: 0 / 0.7996 GB, free: 12.37 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001366/0.1945, allocations: 0.9528 MB / 0.8006 GB, free: 11.36 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.1945, allocations: 4 kB / 0.8006 GB, free: 11.36 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002434/0.1948, allocations: 51.89 kB / 0.8006 GB, free: 11.3 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.917e-06/0.1948, allocations: 3.984 kB / 0.8006 GB, free: 11.3 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.353e-05/0.1948, allocations: 12 kB / 0.8006 GB, free: 11.29 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.1948, allocations: 0 / 0.8006 GB, free: 11.29 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.1948, allocations: 3.984 kB / 0.8006 GB, free: 11.29 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001178/0.196, allocations: 0.6435 MB / 0.8013 GB, free: 10.62 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000123/0.1961, allocations: 144.6 kB / 0.8014 GB, free: 10.46 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.386e-05/0.1962, allocations: 12 kB / 0.8014 GB, free: 10.45 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003139/0.1965, allocations: 31.95 kB / 0.8014 GB, free: 10.42 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001054/0.1966, allocations: 51.88 kB / 0.8015 GB, free: 10.37 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.198e-05/0.1967, allocations: 11.94 kB / 0.8015 GB, free: 10.36 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0002381/0.1969, allocations: 267.2 kB / 0.8017 GB, free: 10.09 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.302e-06/0.1969, allocations: 4 kB / 0.8018 GB, free: 10.09 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0003512/0.1973, allocations: 99.62 kB / 0.8018 GB, free: 9.992 MB / 0.6231 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.active,preHeatCoil.pumOff.active,$cse1,$cse2,$whenCondition2,$whenCondition1,TMix.T_start,TMix.count,preHeatCoil.preHeaOn.y,preHeatCoil.pumOff.localActive,preHeatCoil.pumOff.newActive,preHeatCoil.pumOff.oldActive,preHeatCoil.toOn.enableFire,preHeatCoil.stateGraphRoot.activeSteps,preHeatCoil.pumOn.localActive,preHeatCoil.pumOn.newActive,preHeatCoil.pumOn.oldActive,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.001437/0.1987, allocations: 1.191 MB / 0.803 GB, free: 8.773 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0009381/0.1997, allocations: 447.2 kB / 0.8034 GB, free: 8.324 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1997, allocations: 0 / 0.8034 GB, free: 8.324 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0004036/0.2001, allocations: 175.8 kB / 0.8036 GB, free: 8.152 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004819/0.2006, allocations: 86.89 kB / 0.8037 GB, free: 8.07 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004961/0.2056, allocations: 3.985 MB / 0.8076 GB, free: 3.91 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003235/0.2059, allocations: 0.8274 MB / 0.8084 GB, free: 3.055 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001859/0.2061, allocations: 55.38 kB / 0.8084 GB, free: 2.996 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002128/0.2063, allocations: 163.4 kB / 0.8086 GB, free: 2.84 MB / 0.6231 GB Notification: Performance of SimCode: time 1.532e-06/0.2063, allocations: 0 / 0.8086 GB, free: 2.84 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.159/2.365, allocations: 9.025 MB / 0.8174 GB, free: 9.965 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.49/15.86, allocations: 13.8 kB / 0.8174 GB, free: 9.957 MB / 0.6387 GB (rm -f Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; mkfifo Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; head -c 1048576 < Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe >> ../files/Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil.fmu > Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe 2>&1)