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: translateModel(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil") translateModel(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009958/0.0009958, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.00115/0.001151, allocations: 193.1 kB / 16.25 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.311/1.311, allocations: 205.1 MB / 222.1 MB, free: 4.734 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.642/1.642, allocations: 292.2 MB / 0.5485 GB, free: 13.67 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.001497/0.001497, allocations: 67.12 kB / 0.671 GB, free: 26.25 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2244/0.2259, allocations: 114.5 MB / 0.7828 GB, free: 13.98 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.004735/0.2306, allocations: 3.016 MB / 0.7858 GB, free: 10.94 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.00222/0.2329, allocations: 1.146 MB / 0.7869 GB, free: 9.785 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000411/0.2333, allocations: 15.88 kB / 0.7869 GB, free: 9.77 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0003298/0.2337, allocations: 59.52 kB / 0.787 GB, free: 9.711 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0002922/0.234, allocations: 47.53 kB / 0.787 GB, free: 9.664 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008764/0.2349, allocations: 315.5 kB / 0.7873 GB, free: 9.359 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.000833/0.2358, allocations: 0.7107 MB / 0.788 GB, free: 8.648 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007414/0.2365, allocations: 0.4886 MB / 0.7885 GB, free: 8.152 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002961/0.2368, allocations: 239.1 kB / 0.7887 GB, free: 7.918 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002988/0.2371, allocations: 246.8 kB / 0.789 GB, free: 7.676 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0001067/0.2372, allocations: 75.94 kB / 0.789 GB, free: 7.602 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001334/0.2374, allocations: 83.92 kB / 0.7891 GB, free: 7.52 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.000114/0.2375, allocations: 143.6 kB / 0.7892 GB, free: 7.379 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0002465/0.2378, allocations: 278.6 kB / 0.7895 GB, free: 7.105 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0006808/0.2385, allocations: 0.7087 MB / 0.7902 GB, free: 6.395 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.622e-06/0.2385, allocations: 4 kB / 0.7902 GB, free: 6.391 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.323e-06/0.2385, allocations: 0 / 0.7902 GB, free: 6.391 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 2.638e-05/0.2385, allocations: 0 / 0.7902 GB, free: 6.391 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.001785/0.2403, allocations: 0.8727 MB / 0.7911 GB, free: 5.465 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.713e-05/0.2403, allocations: 12.03 kB / 0.7911 GB, free: 5.453 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001324/0.2405, allocations: 64.19 kB / 0.7911 GB, free: 5.391 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006293/0.2411, allocations: 440.6 kB / 0.7915 GB, free: 4.918 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.917e-05/0.2412, allocations: 37.38 kB / 0.7916 GB, free: 4.879 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.338e-05/0.2413, allocations: 52.36 kB / 0.7916 GB, free: 4.828 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001042/0.2423, allocations: 0.5316 MB / 0.7922 GB, free: 4.262 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.802e-05/0.2423, allocations: 3.938 kB / 0.7922 GB, free: 4.258 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.629e-05/0.2424, allocations: 16 kB / 0.7922 GB, free: 4.242 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.264e-05/0.2424, allocations: 12 kB / 0.7922 GB, free: 4.23 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009411/0.2434, allocations: 403.7 kB / 0.7926 GB, free: 3.836 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002208/0.2456, allocations: 1.844 MB / 0.7944 GB, free: 1.914 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000854/0.2464, allocations: 348 kB / 0.7947 GB, free: 1.57 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003706/0.2468, allocations: 164.8 kB / 0.7949 GB, free: 1.406 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 3.54e-05/0.2469, allocations: 7.938 kB / 0.7949 GB, free: 1.398 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005613/0.2474, allocations: 221.4 kB / 0.7951 GB, free: 1.172 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=34): time 2.224e-06/0.2475, allocations: 0 / 0.7951 GB, free: 1.172 MB / 0.6075 GB Notification: Performance of matching and sorting (n=34): time 0.001226/0.2487, allocations: 470.8 kB / 0.7955 GB, free: 0.707 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.65e-05/0.2487, allocations: 67.39 kB / 0.7956 GB, free: 0.6289 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004256/0.2492, allocations: 405.3 kB / 0.796 GB, free: 232 kB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 4.951e-05/0.2492, allocations: 45.7 kB / 0.796 GB, free: 180 kB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001893/0.2494, allocations: 248.4 kB / 0.7963 GB, free: 15.93 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 8.761e-05/0.2495, allocations: 102.6 kB / 0.7964 GB, free: 15.82 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001592/0.2497, allocations: 102.2 kB / 0.7965 GB, free: 15.72 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001221/0.2498, allocations: 354.8 kB / 0.7968 GB, free: 15.36 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004059/0.2502, allocations: 149 kB / 0.7969 GB, free: 15.21 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004512/0.2507, allocations: 265.8 kB / 0.7972 GB, free: 14.92 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007658/0.2515, allocations: 399.4 kB / 0.7976 GB, free: 14.48 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.518e-06/0.2515, allocations: 8 kB / 0.7976 GB, free: 14.47 MB / 0.6231 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001064/0.2526, allocations: 0.5146 MB / 0.7981 GB, free: 13.95 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 4.038e-05/0.2526, allocations: 36.36 kB / 0.7981 GB, free: 13.91 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.104e-05/0.2526, allocations: 4 kB / 0.7981 GB, free: 13.9 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.9e-05/0.2527, allocations: 4 kB / 0.7981 GB, free: 13.9 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003201/0.253, allocations: 83.77 kB / 0.7982 GB, free: 13.82 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.133e-05/0.253, allocations: 7.984 kB / 0.7982 GB, free: 13.81 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003878/0.2534, allocations: 75.53 kB / 0.7983 GB, free: 13.73 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.505e-05/0.2535, allocations: 27.92 kB / 0.7983 GB, free: 13.71 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.0002342/0.2537, allocations: 202.4 kB / 0.7985 GB, free: 13.5 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.207e-05/0.2538, allocations: 47.45 kB / 0.7985 GB, free: 13.45 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009071/0.2547, allocations: 386.1 kB / 0.7989 GB, free: 13.07 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-06/0.2547, allocations: 4 kB / 0.7989 GB, free: 13.07 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.2547, allocations: 0 / 0.7989 GB, free: 13.07 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.2547, allocations: 0 / 0.7989 GB, free: 13.07 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001523/0.2563, allocations: 0.9527 MB / 0.7998 GB, free: 12.05 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/0.2563, allocations: 4 kB / 0.7998 GB, free: 12.05 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000256/0.2565, allocations: 51.89 kB / 0.7999 GB, free: 12 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.731e-06/0.2565, allocations: 0 / 0.7999 GB, free: 12 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.753e-05/0.2566, allocations: 8 kB / 0.7999 GB, free: 11.99 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/0.2566, allocations: 3.984 kB / 0.7999 GB, free: 11.99 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.2566, allocations: 8.016 kB / 0.7999 GB, free: 11.98 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001226/0.2578, allocations: 0.6319 MB / 0.8005 GB, free: 11.33 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001397/0.258, allocations: 144.5 kB / 0.8007 GB, free: 11.17 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.571e-05/0.2581, allocations: 19.98 kB / 0.8007 GB, free: 11.15 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000317/0.2584, allocations: 31.95 kB / 0.8007 GB, free: 11.12 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001261/0.2585, allocations: 47.89 kB / 0.8008 GB, free: 11.07 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.581e-05/0.2585, allocations: 11.94 kB / 0.8008 GB, free: 11.06 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0002604/0.2588, allocations: 271.2 kB / 0.801 GB, free: 10.79 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2588, allocations: 0 / 0.801 GB, free: 10.79 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0004183/0.2592, allocations: 95.69 kB / 0.8011 GB, free: 10.7 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 (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.0001684/0.2594, allocations: 129.4 kB / 0.8013 GB, free: 10.56 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001036/0.2605, allocations: 447.1 kB / 0.8017 GB, free: 10.11 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.2605, allocations: 0 / 0.8017 GB, free: 10.11 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.00042/0.2609, allocations: 176.4 kB / 0.8018 GB, free: 9.941 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005553/0.2615, allocations: 86.02 kB / 0.8019 GB, free: 9.859 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001388/0.2629, allocations: 0.9112 MB / 0.8028 GB, free: 8.914 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003318/0.2632, allocations: 0.8235 MB / 0.8036 GB, free: 8.062 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0002218/0.2634, allocations: 55.44 kB / 0.8037 GB, free: 8.004 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001174/0.2636, allocations: 43.42 kB / 0.8037 GB, free: 7.965 MB / 0.6231 GB Notification: Performance of SimCode: time 4.71e-07/0.2636, allocations: 0 / 0.8037 GB, free: 7.965 MB / 0.6231 GB Notification: Performance of Templates: time 0.009031/0.2726, allocations: 4.835 MB / 0.8084 GB, free: 3.18 MB / 0.6231 GB make -j1 -f Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.makefile (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 & ./Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe 2>&1)