Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,fileNamePrefix="Buildings_8_0_0_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,fileNamePrefix="Buildings_8_0_0_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.0/package.mo): time 2.764/2.764, allocations: 287.3 MB / 302.3 MB, free: 8.332 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.001481/0.001481, allocations: 181 kB / 370.8 MB, free: 10.89 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.27/2.27, allocations: 205.4 MB / 0.6295 GB, free: 10.66 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.001209/0.001209, allocations: 98.48 kB / 0.7428 GB, free: 6.656 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005041/0.0005043, allocations: 11.03 kB / 0.8657 GB, free: 140.5 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2335/0.2341, allocations: 115.3 MB / 0.9783 GB, free: 28.34 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.003789/0.2379, allocations: 2.5 MB / 0.9807 GB, free: 25.82 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.002664/0.2406, allocations: 1.092 MB / 0.9818 GB, free: 24.72 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004404/0.2411, allocations: 11.94 kB / 0.9818 GB, free: 24.71 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.000174/0.2413, allocations: 47.56 kB / 0.9818 GB, free: 24.66 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0004588/0.2418, allocations: 87.67 kB / 0.9819 GB, free: 24.57 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008971/0.2427, allocations: 245.6 kB / 0.9822 GB, free: 24.34 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0006875/0.2434, allocations: 408.5 kB / 0.9826 GB, free: 23.94 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005834/0.244, allocations: 360.1 kB / 0.9829 GB, free: 23.58 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002351/0.2443, allocations: 171.2 kB / 0.9831 GB, free: 23.41 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002446/0.2445, allocations: 183 kB / 0.9832 GB, free: 23.23 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 6.114e-05/0.2446, allocations: 20 kB / 0.9833 GB, free: 23.21 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001109/0.2447, allocations: 20 kB / 0.9833 GB, free: 23.19 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.0001036/0.2448, allocations: 79.66 kB / 0.9834 GB, free: 23.11 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 0.0001039/0.2449, allocations: 109.5 kB / 0.9835 GB, free: 23 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0006338/0.2456, allocations: 0.5418 MB / 0.984 GB, free: 22.46 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.2456, allocations: 4 kB / 0.984 GB, free: 22.45 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.814e-06/0.2456, allocations: 0 / 0.984 GB, free: 22.45 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 8.366e-06/0.2456, allocations: 4 kB / 0.984 GB, free: 22.45 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.002287/0.2479, allocations: 0.7885 MB / 0.9848 GB, free: 21.6 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 6.769e-05/0.248, allocations: 16.02 kB / 0.9848 GB, free: 21.59 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002431/0.2483, allocations: 82.52 kB / 0.9849 GB, free: 21.5 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002438/0.2486, allocations: 71.2 kB / 0.9849 GB, free: 21.43 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001489/0.2501, allocations: 423.6 kB / 0.9853 GB, free: 20.97 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001062/0.2502, allocations: 40.98 kB / 0.9854 GB, free: 20.93 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001744/0.2504, allocations: 48 kB / 0.9854 GB, free: 20.89 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002854/0.2533, allocations: 0.5391 MB / 0.9859 GB, free: 20.31 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.405e-05/0.2534, allocations: 3.938 kB / 0.9859 GB, free: 20.3 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001413/0.2536, allocations: 19.98 kB / 0.986 GB, free: 20.29 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.785e-05/0.2536, allocations: 12 kB / 0.986 GB, free: 20.27 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003158/0.2568, allocations: 415.7 kB / 0.9864 GB, free: 19.87 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005324/0.2622, allocations: 1.868 MB / 0.9882 GB, free: 17.92 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001926/0.2642, allocations: 370.9 kB / 0.9885 GB, free: 17.55 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 5.037e-05/0.2643, allocations: 4 kB / 0.9886 GB, free: 17.54 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008051/0.2651, allocations: 225.4 kB / 0.9888 GB, free: 17.31 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=34): time 3.637e-06/0.2651, allocations: 0 / 0.9888 GB, free: 17.31 MB / 0.6198 GB Notification: Performance of matching and sorting (n=34): time 0.002075/0.2672, allocations: 0.5013 MB / 0.9893 GB, free: 16.8 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.789e-05/0.2673, allocations: 55.41 kB / 0.9893 GB, free: 16.74 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006391/0.2679, allocations: 405.4 kB / 0.9897 GB, free: 16.34 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 8.235e-05/0.268, allocations: 37.7 kB / 0.9897 GB, free: 16.3 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002025/0.2682, allocations: 256.1 kB / 0.99 GB, free: 16.04 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001046/0.2684, allocations: 94.73 kB / 0.9901 GB, free: 15.95 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.667e-05/0.2684, allocations: 15.94 kB / 0.9901 GB, free: 15.93 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001076/0.2685, allocations: 346.8 kB / 0.9904 GB, free: 15.59 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006836/0.2692, allocations: 169 kB / 0.9906 GB, free: 15.42 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007319/0.27, allocations: 273.9 kB / 0.9908 GB, free: 15.12 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000702/0.2707, allocations: 203.5 kB / 0.991 GB, free: 14.91 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.48e-06/0.2707, allocations: 0 / 0.991 GB, free: 14.91 MB / 0.6198 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001793/0.2725, allocations: 0.5379 MB / 0.9916 GB, free: 14.36 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 4.835e-05/0.2726, allocations: 33.7 kB / 0.9916 GB, free: 14.32 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/0.2726, allocations: 0 / 0.9916 GB, free: 14.32 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.129e-05/0.2727, allocations: 11.98 kB / 0.9916 GB, free: 14.31 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005702/0.2732, allocations: 79.83 kB / 0.9917 GB, free: 14.23 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.475e-05/0.2733, allocations: 4.25 kB / 0.9917 GB, free: 14.23 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006672/0.2739, allocations: 87.39 kB / 0.9918 GB, free: 14.14 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.143e-05/0.274, allocations: 20 kB / 0.9918 GB, free: 14.12 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.0003505/0.2744, allocations: 213.6 kB / 0.992 GB, free: 13.91 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.017e-05/0.2745, allocations: 39.53 kB / 0.992 GB, free: 13.87 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001507/0.276, allocations: 409.4 kB / 0.9924 GB, free: 13.46 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.564e-06/0.276, allocations: 7.938 kB / 0.9924 GB, free: 13.45 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.276, allocations: 0 / 0.9924 GB, free: 13.45 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.496e-06/0.2761, allocations: 3.984 kB / 0.9924 GB, free: 13.45 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002305/0.2784, allocations: 0.9749 MB / 0.9934 GB, free: 12.41 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.561e-06/0.2784, allocations: 0 / 0.9934 GB, free: 12.41 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004671/0.2789, allocations: 51.91 kB / 0.9934 GB, free: 12.36 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.899e-06/0.2789, allocations: 11.92 kB / 0.9934 GB, free: 12.35 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.771e-05/0.279, allocations: 12.03 kB / 0.9934 GB, free: 12.34 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.731e-06/0.279, allocations: 4 kB / 0.9935 GB, free: 12.34 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.534e-06/0.279, allocations: 0 / 0.9935 GB, free: 12.34 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002133/0.2811, allocations: 0.6734 MB / 0.9941 GB, free: 11.64 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002105/0.2814, allocations: 144.5 kB / 0.9942 GB, free: 11.48 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.751e-05/0.2815, allocations: 12 kB / 0.9943 GB, free: 11.46 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005482/0.282, allocations: 48.02 kB / 0.9943 GB, free: 11.42 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001775/0.2822, allocations: 47.86 kB / 0.9944 GB, free: 11.37 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.013e-05/0.2823, allocations: 15.95 kB / 0.9944 GB, free: 11.36 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0003985/0.2827, allocations: 267.2 kB / 0.9946 GB, free: 11.09 MB / 0.6198 GB Notification: Performance of sort global known variables: time 5.31e-07/0.2827, allocations: 0 / 0.9946 GB, free: 11.09 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.000745/0.2835, allocations: 95.69 kB / 0.9947 GB, free: 11 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.002519/0.286, allocations: 1.308 MB / 0.996 GB, free: 9.66 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.001553/0.2876, allocations: 447.5 kB / 0.9964 GB, free: 9.211 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 4.98e-06/0.2876, allocations: 0.8125 kB / 0.9964 GB, free: 9.211 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.000736/0.2884, allocations: 195.7 kB / 0.9966 GB, free: 9.02 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006987/0.2891, allocations: 81.39 kB / 0.9967 GB, free: 8.934 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006838/0.296, allocations: 4.465 MB / 1.001 GB, free: 4.363 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003209/0.2963, allocations: 0.8357 MB / 1.002 GB, free: 3.5 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0003667/0.2967, allocations: 51.45 kB / 1.002 GB, free: 3.445 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003524/0.2971, allocations: 159.4 kB / 1.002 GB, free: 3.289 MB / 0.6198 GB Notification: Performance of SimCode: time 2.535e-06/0.2971, allocations: 0 / 1.002 GB, free: 3.289 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04345/0.3405, allocations: 8.573 MB / 1.01 GB, free: 10.92 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002759/0.3409, allocations: 200.6 kB / 1.011 GB, free: 10.68 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.862/3.203, allocations: 0 / 1.011 GB, free: 10.68 MB / 0.6355 GB (rm -f Buildings_8.0.0_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; mkfifo Buildings_8.0.0_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe >> ../files/Buildings_8.0.0_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil.fmu > Buildings_8.0.0_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe 2>&1)