Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil") translateModel(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.29/1.29, allocations: 252 MB / 267.9 MB, free: 10.92 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009048/0.0009047, allocations: 179.4 kB / 327.6 MB, free: 2.172 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.494/1.494, allocations: 205.4 MB / 0.5785 GB, free: 20.25 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008076/0.0008076, allocations: 84.08 kB / 0.6831 GB, free: 12.84 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003445/0.0003445, allocations: 13.09 kB / 0.7974 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1936/0.1939, allocations: 106.3 MB / 0.9012 GB, free: 63.72 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1631/0.3571, allocations: 139.5 MB / 1.038 GB, free: 3.984 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002656/0.3574, allocations: 91.94 kB / 1.038 GB, free: 3.895 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.02134/0.3788, allocations: 8.852 MB / 1.046 GB, free: 11.01 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.903e-06/0.3788, allocations: 0 / 1.046 GB, free: 11.01 MB / 0.698 GB Notification: Performance of Transformations before backend: time 2.935e-05/0.3788, allocations: 16 kB / 1.046 GB, free: 10.99 MB / 0.698 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.001244/0.3801, allocations: 0.7822 MB / 1.047 GB, free: 10.15 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/0.3801, allocations: 8.031 kB / 1.047 GB, free: 10.14 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001001/0.3802, allocations: 60.28 kB / 1.047 GB, free: 10.09 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005332/0.3808, allocations: 432.8 kB / 1.047 GB, free: 9.625 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.43e-05/0.3808, allocations: 45.36 kB / 1.048 GB, free: 9.578 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.759e-05/0.3809, allocations: 44.38 kB / 1.048 GB, free: 9.535 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009384/0.3819, allocations: 0.5756 MB / 1.048 GB, free: 8.922 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.624e-05/0.3819, allocations: 3.938 kB / 1.048 GB, free: 8.918 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.254e-05/0.3819, allocations: 16 kB / 1.048 GB, free: 8.902 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.181e-05/0.382, allocations: 12 kB / 1.048 GB, free: 8.891 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009238/0.3829, allocations: 463.6 kB / 1.049 GB, free: 8.438 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002081/0.385, allocations: 1.892 MB / 1.05 GB, free: 6.469 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009062/0.3859, allocations: 413 kB / 1.051 GB, free: 6.059 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003676/0.3863, allocations: 188.7 kB / 1.051 GB, free: 5.871 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.924e-05/0.3863, allocations: 4 kB / 1.051 GB, free: 5.867 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000505/0.3868, allocations: 249.4 kB / 1.051 GB, free: 5.609 MB / 0.698 GB Notification: Performance of pre-optimization done (n=34): time 2.064e-06/0.3868, allocations: 0 / 1.051 GB, free: 5.609 MB / 0.698 GB Notification: Performance of matching and sorting (n=34): time 0.0012/0.3881, allocations: 0.5492 MB / 1.052 GB, free: 5.055 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.182e-05/0.3881, allocations: 118.7 kB / 1.052 GB, free: 4.914 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003958/0.3885, allocations: 405.5 kB / 1.052 GB, free: 4.508 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 4.397e-05/0.3886, allocations: 45.62 kB / 1.052 GB, free: 4.457 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001596/0.3887, allocations: 244.3 kB / 1.053 GB, free: 4.211 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 8.007e-05/0.3888, allocations: 102.7 kB / 1.053 GB, free: 4.109 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.864e-05/0.3889, allocations: 4 kB / 1.053 GB, free: 4.105 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001272/0.389, allocations: 362.8 kB / 1.053 GB, free: 3.742 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003927/0.3894, allocations: 177 kB / 1.053 GB, free: 3.57 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004573/0.3899, allocations: 298.8 kB / 1.053 GB, free: 3.227 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007546/0.3906, allocations: 450.5 kB / 1.054 GB, free: 2.742 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.3906, allocations: 0 / 1.054 GB, free: 2.742 MB / 0.698 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.00101/0.3917, allocations: 0.5614 MB / 1.054 GB, free: 2.168 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 3.65e-05/0.3917, allocations: 33.7 kB / 1.054 GB, free: 2.129 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.3917, allocations: 0 / 1.054 GB, free: 2.129 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.007e-05/0.3917, allocations: 8 kB / 1.055 GB, free: 2.121 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003099/0.3921, allocations: 88.03 kB / 1.055 GB, free: 2.035 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.122e-05/0.3921, allocations: 4 kB / 1.055 GB, free: 2.031 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003497/0.3924, allocations: 83.64 kB / 1.055 GB, free: 1.949 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.233e-05/0.3925, allocations: 23.92 kB / 1.055 GB, free: 1.926 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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,$PRE.preHeatCoil.pumOff.localActive,preHeatCoil.pumOff.localActive,$PRE.preHeatCoil.pumOff.newActive,preHeatCoil.pumOff.newActive,$PRE.preHeatCoil.pumOff.oldActive,preHeatCoil.pumOff.oldActive,preHeatCoil.pumOff.active,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 (57): * Single equations (assignments): 56 * 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.0002203/0.3927, allocations: 201.8 kB / 1.055 GB, free: 1.723 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.339e-05/0.3928, allocations: 51.36 kB / 1.055 GB, free: 1.672 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008909/0.3937, allocations: 445.5 kB / 1.055 GB, free: 1.23 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.501e-06/0.3937, allocations: 4 kB / 1.055 GB, free: 1.227 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.3937, allocations: 0 / 1.055 GB, free: 1.227 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.3937, allocations: 0 / 1.055 GB, free: 1.227 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001464/0.3952, allocations: 1.022 MB / 1.056 GB, free: 148 kB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.3952, allocations: 0 / 1.056 GB, free: 148 kB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002513/0.3954, allocations: 63.89 kB / 1.056 GB, free: 84 kB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.688e-06/0.3955, allocations: 4.031 kB / 1.056 GB, free: 80 kB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.425e-05/0.3955, allocations: 11.94 kB / 1.056 GB, free: 68 kB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.3955, allocations: 0 / 1.056 GB, free: 68 kB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.3955, allocations: 4 kB / 1.056 GB, free: 64 kB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3905/0.786, allocations: 0.7107 MB / 1.057 GB, free: 147.5 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001676/0.7862, allocations: 151.7 kB / 1.057 GB, free: 147.4 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.754e-05/0.7863, allocations: 11.88 kB / 1.057 GB, free: 147.4 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003368/0.7866, allocations: 53.02 kB / 1.057 GB, free: 147.4 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000152/0.7868, allocations: 47.97 kB / 1.057 GB, free: 147.4 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.09e-05/0.7868, allocations: 12.8 kB / 1.057 GB, free: 147.4 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0003045/0.7871, allocations: 267.9 kB / 1.058 GB, free: 147.4 MB / 0.698 GB Notification: Performance of sort global known variables: time 2.5e-07/0.7872, allocations: 4 kB / 1.058 GB, free: 147.4 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0004423/0.7876, allocations: 95 kB / 1.058 GB, free: 147.4 MB / 0.698 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.newActive,preHeatCoil.pumOff.oldActive,preHeatCoil.pumOff.active,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.000181/0.7878, allocations: 126.3 kB / 1.058 GB, free: 147.3 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0009013/0.7887, allocations: 482 kB / 1.058 GB, free: 147.2 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.7887, allocations: 2.875 kB / 1.058 GB, free: 147.2 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0003769/0.7891, allocations: 209.9 kB / 1.059 GB, free: 147.2 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005259/0.7896, allocations: 84.72 kB / 1.059 GB, free: 147.2 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001282/0.7909, allocations: 0.8804 MB / 1.059 GB, free: 146.7 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002208/0.7912, allocations: 0.8279 MB / 1.06 GB, free: 146 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0002028/0.7914, allocations: 52.25 kB / 1.06 GB, free: 146 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.908e-05/0.7915, allocations: 38.03 kB / 1.06 GB, free: 146 MB / 0.698 GB Notification: Performance of SimCode: time 2.3e-07/0.7915, allocations: 0 / 1.06 GB, free: 146 MB / 0.698 GB Notification: Performance of Templates: time 0.01069/0.8022, allocations: 4.846 MB / 1.065 GB, free: 145.8 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.makefile (rm -f Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.sim & ./Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe 2>&1)