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.937/2.937, allocations: 287.5 MB / 302.4 MB, free: 8.297 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.00133/0.00133, allocations: 174.4 kB / 371 MB, free: 10.88 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.059/2.059, allocations: 205.4 MB / 0.6297 GB, free: 10.6 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.000916/0.0009159, allocations: 88.44 kB / 0.743 GB, free: 6.609 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004865/0.0004868, allocations: 11.44 kB / 0.8659 GB, free: 140.7 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2105/0.211, allocations: 115.3 MB / 0.9784 GB, free: 28.28 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.003715/0.2148, allocations: 2.507 MB / 0.9809 GB, free: 25.75 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.002542/0.2174, allocations: 1.108 MB / 0.982 GB, free: 24.63 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004455/0.2178, allocations: 11.94 kB / 0.982 GB, free: 24.62 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0002398/0.2181, allocations: 55.45 kB / 0.982 GB, free: 24.57 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0002145/0.2183, allocations: 59.56 kB / 0.9821 GB, free: 24.51 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009569/0.2193, allocations: 224.7 kB / 0.9823 GB, free: 24.29 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0007523/0.2201, allocations: 0.6053 MB / 0.9829 GB, free: 23.68 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005997/0.2207, allocations: 360.1 kB / 0.9832 GB, free: 23.32 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002332/0.2209, allocations: 163.2 kB / 0.9834 GB, free: 23.16 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002397/0.2212, allocations: 182.9 kB / 0.9836 GB, free: 22.98 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 7.105e-05/0.2213, allocations: 20 kB / 0.9836 GB, free: 22.96 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001293/0.2214, allocations: 24 kB / 0.9836 GB, free: 22.94 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.0001021/0.2215, allocations: 91.59 kB / 0.9837 GB, free: 22.85 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 0.0001242/0.2217, allocations: 101.5 kB / 0.9838 GB, free: 22.75 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0006363/0.2223, allocations: 0.5418 MB / 0.9843 GB, free: 22.2 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.2223, allocations: 0 / 0.9843 GB, free: 22.2 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.165e-06/0.2223, allocations: 3.938 kB / 0.9843 GB, free: 22.2 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 8.266e-06/0.2224, allocations: 0 / 0.9843 GB, free: 22.2 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.002083/0.2245, allocations: 0.7923 MB / 0.9851 GB, free: 21.35 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.602e-05/0.2245, allocations: 12.02 kB / 0.9851 GB, free: 21.34 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001275/0.2246, allocations: 86.52 kB / 0.9852 GB, free: 21.24 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001295/0.2248, allocations: 63.2 kB / 0.9853 GB, free: 21.18 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007554/0.2256, allocations: 431.6 kB / 0.9857 GB, free: 20.72 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.89e-05/0.2257, allocations: 40.98 kB / 0.9857 GB, free: 20.68 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001024/0.2258, allocations: 48 kB / 0.9858 GB, free: 20.63 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001387/0.2272, allocations: 0.5313 MB / 0.9863 GB, free: 20.06 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.203e-05/0.2272, allocations: 4 kB / 0.9863 GB, free: 20.06 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.618e-05/0.2273, allocations: 23.98 kB / 0.9863 GB, free: 20.04 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.445e-05/0.2273, allocations: 12 kB / 0.9863 GB, free: 20.02 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001472/0.2288, allocations: 419.6 kB / 0.9867 GB, free: 19.62 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002843/0.2316, allocations: 1.868 MB / 0.9885 GB, free: 17.66 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0014/0.2331, allocations: 358.9 kB / 0.9889 GB, free: 17.3 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000636/0.2337, allocations: 176.8 kB / 0.9891 GB, free: 17.13 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 4.7e-05/0.2338, allocations: 8 kB / 0.9891 GB, free: 17.12 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007743/0.2346, allocations: 225.4 kB / 0.9893 GB, free: 16.89 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=34): time 2.976e-06/0.2346, allocations: 0 / 0.9893 GB, free: 16.89 MB / 0.6198 GB Notification: Performance of matching and sorting (n=34): time 0.001952/0.2366, allocations: 0.4974 MB / 0.9898 GB, free: 16.39 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.061e-05/0.2366, allocations: 63.39 kB / 0.9898 GB, free: 16.31 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005412/0.2372, allocations: 401.3 kB / 0.9902 GB, free: 15.92 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 6.243e-05/0.2373, allocations: 45.69 kB / 0.9902 GB, free: 15.87 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001859/0.2375, allocations: 252.2 kB / 0.9905 GB, free: 15.62 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 8.958e-05/0.2376, allocations: 90.75 kB / 0.9906 GB, free: 15.53 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.129e-05/0.2376, allocations: 12 kB / 0.9906 GB, free: 15.52 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 9.472e-05/0.2377, allocations: 358.7 kB / 0.9909 GB, free: 15.16 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006512/0.2384, allocations: 165 kB / 0.9911 GB, free: 15 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007002/0.2391, allocations: 269.9 kB / 0.9913 GB, free: 14.7 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000662/0.2398, allocations: 199.5 kB / 0.9915 GB, free: 14.5 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.591e-06/0.2398, allocations: 4 kB / 0.9915 GB, free: 14.49 MB / 0.6198 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001638/0.2415, allocations: 0.534 MB / 0.9921 GB, free: 13.95 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 4.081e-05/0.2415, allocations: 36.36 kB / 0.9921 GB, free: 13.91 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.085e-05/0.2415, allocations: 4 kB / 0.9921 GB, free: 13.9 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.792e-05/0.2416, allocations: 4 kB / 0.9921 GB, free: 13.9 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005631/0.2422, allocations: 80.12 kB / 0.9922 GB, free: 13.82 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.511e-05/0.2422, allocations: 11.94 kB / 0.9922 GB, free: 13.81 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006191/0.2428, allocations: 83.39 kB / 0.9923 GB, free: 13.73 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.795e-05/0.2429, allocations: 20 kB / 0.9923 GB, free: 13.71 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.0003212/0.2432, allocations: 221.5 kB / 0.9925 GB, free: 13.48 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.598e-05/0.2433, allocations: 39.53 kB / 0.9925 GB, free: 13.45 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001426/0.2447, allocations: 409.4 kB / 0.9929 GB, free: 13.04 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.943e-06/0.2448, allocations: 0 / 0.9929 GB, free: 13.04 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.2448, allocations: 4 kB / 0.9929 GB, free: 13.03 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.2448, allocations: 0 / 0.9929 GB, free: 13.03 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002233/0.247, allocations: 0.9827 MB / 0.9939 GB, free: 11.99 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.92e-06/0.2471, allocations: 0 / 0.9939 GB, free: 11.99 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000458/0.2475, allocations: 59.89 kB / 0.9939 GB, free: 11.93 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.654e-06/0.2476, allocations: 7.969 kB / 0.994 GB, free: 11.92 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.592e-05/0.2476, allocations: 11.98 kB / 0.994 GB, free: 11.91 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.36e-06/0.2476, allocations: 0 / 0.994 GB, free: 11.91 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.2476, allocations: 4 kB / 0.994 GB, free: 11.91 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001991/0.2496, allocations: 0.6638 MB / 0.9946 GB, free: 11.22 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001841/0.2499, allocations: 148.5 kB / 0.9948 GB, free: 11.06 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.243e-05/0.2499, allocations: 8 kB / 0.9948 GB, free: 11.05 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005256/0.2505, allocations: 48.02 kB / 0.9948 GB, free: 11 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001694/0.2507, allocations: 43.94 kB / 0.9949 GB, free: 10.96 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.009e-05/0.2507, allocations: 15.98 kB / 0.9949 GB, free: 10.95 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0003689/0.2511, allocations: 259.2 kB / 0.9951 GB, free: 10.69 MB / 0.6198 GB Notification: Performance of sort global known variables: time 4.61e-07/0.2511, allocations: 0 / 0.9951 GB, free: 10.69 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0005607/0.2517, allocations: 99.67 kB / 0.9952 GB, free: 10.59 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.002325/0.254, allocations: 1.23 MB / 0.9964 GB, free: 9.336 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.001489/0.2555, allocations: 451.7 kB / 0.9968 GB, free: 8.883 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 4.057e-06/0.2556, allocations: 0 / 0.9968 GB, free: 8.883 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0006896/0.2563, allocations: 200.3 kB / 0.997 GB, free: 8.688 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008059/0.2571, allocations: 78.38 kB / 0.9971 GB, free: 8.605 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006208/0.2633, allocations: 2.532 MB / 0.9996 GB, free: 5.98 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002976/0.2637, allocations: 0.8274 MB / 1 GB, free: 5.129 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0003531/0.264, allocations: 51.45 kB / 1 GB, free: 5.078 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003318/0.2644, allocations: 167.4 kB / 1.001 GB, free: 4.914 MB / 0.6198 GB Notification: Performance of SimCode: time 1.833e-06/0.2644, allocations: 3.938 kB / 1.001 GB, free: 4.91 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03387/0.2983, allocations: 8.593 MB / 1.009 GB, free: 12.52 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003346/0.2987, allocations: 207.1 kB / 1.009 GB, free: 12.28 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.89/3.189, allocations: 0 / 1.009 GB, free: 12.28 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)