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.001734/0.001734, allocations: 99.31 kB / 15.05 MB, free: 1.105 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.001762/0.001763, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.961/2.961, allocations: 205.4 MB / 222.1 MB, free: 5.652 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 3.296/3.296, allocations: 292.6 MB / 0.5497 GB, free: 14.61 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.0008852/0.0008858, allocations: 13.53 kB / 0.6737 GB, free: 26.28 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4516/0.4525, allocations: 116.3 MB / 0.7872 GB, free: 11.86 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.006175/0.4588, allocations: 2.508 MB / 0.7897 GB, free: 9.336 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.003615/0.4625, allocations: 1.096 MB / 0.7907 GB, free: 8.23 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006164/0.4632, allocations: 11.94 kB / 0.7908 GB, free: 8.219 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0002346/0.4634, allocations: 47.52 kB / 0.7908 GB, free: 8.172 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0005552/0.464, allocations: 91.67 kB / 0.7909 GB, free: 8.082 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.001076/0.4651, allocations: 239.4 kB / 0.7911 GB, free: 7.852 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0008667/0.466, allocations: 408.4 kB / 0.7915 GB, free: 7.453 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007987/0.4668, allocations: 363.9 kB / 0.7919 GB, free: 7.086 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003229/0.4671, allocations: 167.3 kB / 0.792 GB, free: 6.922 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003195/0.4674, allocations: 183 kB / 0.7922 GB, free: 6.742 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 6.561e-05/0.4675, allocations: 24 kB / 0.7922 GB, free: 6.719 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001164/0.4677, allocations: 20 kB / 0.7922 GB, free: 6.699 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001337/0.4678, allocations: 79.61 kB / 0.7923 GB, free: 6.621 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001534/0.468, allocations: 113.4 kB / 0.7924 GB, free: 6.504 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0007519/0.4687, allocations: 0.5301 MB / 0.7929 GB, free: 5.973 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.159e-06/0.4687, allocations: 0 / 0.7929 GB, free: 5.973 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.284e-06/0.4688, allocations: 4 kB / 0.7929 GB, free: 5.969 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.145e-05/0.4688, allocations: 0 / 0.7929 GB, free: 5.969 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.002203/0.471, allocations: 0.7962 MB / 0.7937 GB, free: 5.109 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 7.145e-05/0.4711, allocations: 12.03 kB / 0.7937 GB, free: 5.098 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001535/0.4712, allocations: 82.52 kB / 0.7938 GB, free: 5.008 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000158/0.4714, allocations: 67.25 kB / 0.7939 GB, free: 4.941 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008933/0.4723, allocations: 423.5 kB / 0.7943 GB, free: 4.488 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.875e-05/0.4724, allocations: 37 kB / 0.7943 GB, free: 4.453 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001154/0.4725, allocations: 51.98 kB / 0.7944 GB, free: 4.402 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001447/0.474, allocations: 0.5352 MB / 0.7949 GB, free: 3.832 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.192e-05/0.474, allocations: 0 / 0.7949 GB, free: 3.832 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.184e-05/0.4741, allocations: 16 kB / 0.7949 GB, free: 3.816 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.087e-05/0.4741, allocations: 23.88 kB / 0.7949 GB, free: 3.793 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001419/0.4756, allocations: 431.6 kB / 0.7953 GB, free: 3.371 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003468/0.479, allocations: 1.856 MB / 0.7971 GB, free: 1.438 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001345/0.4804, allocations: 370.8 kB / 0.7975 GB, free: 1.066 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 4.777e-05/0.4805, allocations: 4 kB / 0.7975 GB, free: 1.062 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008373/0.4813, allocations: 217.5 kB / 0.7977 GB, free: 0.8398 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=34): time 3.747e-06/0.4813, allocations: 4 kB / 0.7977 GB, free: 0.8359 MB / 0.6075 GB Notification: Performance of matching and sorting (n=34): time 0.001948/0.4833, allocations: 0.4986 MB / 0.7982 GB, free: 340 kB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.828e-05/0.4834, allocations: 59.34 kB / 0.7983 GB, free: 268 kB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007393/0.4841, allocations: 405.4 kB / 0.7986 GB, free: 15.86 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 7.867e-05/0.4842, allocations: 37.7 kB / 0.7987 GB, free: 15.82 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003213/0.4846, allocations: 260.1 kB / 0.7989 GB, free: 15.55 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001553/0.4847, allocations: 94.73 kB / 0.799 GB, free: 15.46 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.606e-05/0.4848, allocations: 12 kB / 0.799 GB, free: 15.45 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0002326/0.485, allocations: 350.8 kB / 0.7994 GB, free: 15.1 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006348/0.4857, allocations: 165 kB / 0.7995 GB, free: 14.94 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007362/0.4864, allocations: 265.9 kB / 0.7998 GB, free: 14.64 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007033/0.4871, allocations: 207.2 kB / 0.8 GB, free: 14.43 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.714e-06/0.4872, allocations: 0 / 0.8 GB, free: 14.43 MB / 0.6231 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001715/0.4889, allocations: 0.5378 MB / 0.8005 GB, free: 13.88 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 6.461e-05/0.489, allocations: 30.08 kB / 0.8005 GB, free: 13.84 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.325e-05/0.489, allocations: 8 kB / 0.8005 GB, free: 13.84 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.107e-05/0.489, allocations: 8 kB / 0.8005 GB, free: 13.83 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004934/0.4895, allocations: 79.88 kB / 0.8006 GB, free: 13.75 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.981e-05/0.4896, allocations: 7.938 kB / 0.8006 GB, free: 13.74 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000586/0.4902, allocations: 87.39 kB / 0.8007 GB, free: 13.66 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.644e-05/0.4903, allocations: 20 kB / 0.8007 GB, free: 13.64 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,$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.0004509/0.4907, allocations: 205.7 kB / 0.8009 GB, free: 13.43 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001172/0.4909, allocations: 43.48 kB / 0.801 GB, free: 13.38 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001487/0.4924, allocations: 410.1 kB / 0.8014 GB, free: 12.98 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.184e-05/0.4924, allocations: 4 kB / 0.8014 GB, free: 12.97 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.267e-06/0.4924, allocations: 0 / 0.8014 GB, free: 12.97 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.75e-05/0.4924, allocations: 3.984 kB / 0.8014 GB, free: 12.97 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002718/0.4952, allocations: 0.9846 MB / 0.8023 GB, free: 11.93 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.968e-06/0.4952, allocations: 3.984 kB / 0.8023 GB, free: 11.92 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004023/0.4956, allocations: 51.91 kB / 0.8024 GB, free: 11.87 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.712e-05/0.4956, allocations: 4 kB / 0.8024 GB, free: 11.87 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.777e-05/0.4957, allocations: 11.98 kB / 0.8024 GB, free: 11.86 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.62e-06/0.4957, allocations: 0 / 0.8024 GB, free: 11.86 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.357e-06/0.4957, allocations: 0 / 0.8024 GB, free: 11.86 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002206/0.4979, allocations: 0.6848 MB / 0.8031 GB, free: 11.14 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002775/0.4982, allocations: 152.4 kB / 0.8032 GB, free: 10.98 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.832e-05/0.4983, allocations: 8 kB / 0.8032 GB, free: 10.97 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004759/0.4988, allocations: 43.95 kB / 0.8033 GB, free: 10.93 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001954/0.499, allocations: 43.98 kB / 0.8033 GB, free: 10.88 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.921e-05/0.4991, allocations: 16 kB / 0.8033 GB, free: 10.87 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0005335/0.4996, allocations: 267.2 kB / 0.8036 GB, free: 10.61 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.6e-07/0.4996, allocations: 0 / 0.8036 GB, free: 10.61 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0007809/0.5004, allocations: 99.64 kB / 0.8037 GB, free: 10.51 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.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.002756/0.5032, allocations: 1.304 MB / 0.8049 GB, free: 9.168 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001868/0.5051, allocations: 451.5 kB / 0.8054 GB, free: 8.715 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.038e-05/0.5051, allocations: 4 kB / 0.8054 GB, free: 8.711 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.000685/0.5058, allocations: 188.2 kB / 0.8056 GB, free: 8.527 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008809/0.5067, allocations: 83.89 kB / 0.8056 GB, free: 8.449 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01064/0.5174, allocations: 4.453 MB / 0.81 GB, free: 3.879 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008799/0.5184, allocations: 0.8474 MB / 0.8108 GB, free: 3.008 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0004131/0.5188, allocations: 55.38 kB / 0.8109 GB, free: 2.953 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004468/0.5193, allocations: 155.4 kB / 0.811 GB, free: 2.801 MB / 0.6231 GB Notification: Performance of SimCode: time 2.134e-06/0.5193, allocations: 4 kB / 0.811 GB, free: 2.797 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0479/0.5672, allocations: 8.555 MB / 0.8194 GB, free: 10.44 MB / 0.6387 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0005131/0.5679, allocations: 203.2 kB / 0.8196 GB, free: 10.19 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.524/4.092, allocations: 10.09 kB / 0.8196 GB, free: 10.19 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/linux/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) Environment - environmentSimulation: