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.0009395/0.0009396, allocations: 107.7 kB / 16.29 MB, free: 6.023 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.0008876/0.0008876, allocations: 184.2 kB / 17.22 MB, free: 5.633 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.175/1.175, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.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.602/1.602, allocations: 292.3 MB / 0.5495 GB, free: 17.5 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.001268/0.001268, allocations: 71.91 kB / 0.6722 GB, free: 6.508 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1832/0.1845, allocations: 114.5 MB / 0.7841 GB, free: 3.84 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.003664/0.1882, allocations: 2.93 MB / 0.7869 GB, free: 0.8828 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.3114/0.4996, allocations: 1.149 MB / 0.7881 GB, free: 45.79 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004451/0.5001, allocations: 12 kB / 0.7881 GB, free: 45.79 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0003168/0.5005, allocations: 82.72 kB / 0.7881 GB, free: 45.79 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0003232/0.5008, allocations: 80.2 kB / 0.7882 GB, free: 45.79 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008604/0.5017, allocations: 343.9 kB / 0.7885 GB, free: 45.79 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0007738/0.5025, allocations: 0.7168 MB / 0.7892 GB, free: 45.79 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006601/0.5031, allocations: 488.8 kB / 0.7897 GB, free: 45.77 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002924/0.5034, allocations: 244.2 kB / 0.7899 GB, free: 45.72 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000222/0.5037, allocations: 250.9 kB / 0.7902 GB, free: 45.66 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 8.207e-05/0.5037, allocations: 69.41 kB / 0.7903 GB, free: 45.66 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001144/0.5039, allocations: 77.36 kB / 0.7903 GB, free: 45.66 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 9.958e-05/0.504, allocations: 141.3 kB / 0.7905 GB, free: 45.64 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0001585/0.5041, allocations: 274.1 kB / 0.7907 GB, free: 45.56 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0005136/0.5047, allocations: 0.7392 MB / 0.7914 GB, free: 45.47 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.5047, allocations: 0 / 0.7914 GB, free: 45.47 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.834e-06/0.5047, allocations: 3.375 kB / 0.7914 GB, free: 45.47 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 8.506e-06/0.5047, allocations: 3.938 kB / 0.7915 GB, free: 45.46 MB / 0.6544 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.001258/0.506, allocations: 0.8773 MB / 0.7923 GB, free: 44.92 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 2.921e-05/0.506, allocations: 10.94 kB / 0.7923 GB, free: 44.92 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.994e-05/0.5061, allocations: 62.12 kB / 0.7924 GB, free: 44.89 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004327/0.5065, allocations: 434.1 kB / 0.7928 GB, free: 44.64 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.093e-05/0.5066, allocations: 38.28 kB / 0.7928 GB, free: 44.64 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.799e-05/0.5066, allocations: 52.44 kB / 0.7929 GB, free: 44.64 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007426/0.5074, allocations: 0.5322 MB / 0.7934 GB, free: 44.53 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.568e-05/0.5074, allocations: 7.312 kB / 0.7934 GB, free: 44.52 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.734e-05/0.5075, allocations: 20.25 kB / 0.7934 GB, free: 44.52 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.817e-06/0.5075, allocations: 10.75 kB / 0.7934 GB, free: 44.52 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007678/0.5082, allocations: 401.5 kB / 0.7938 GB, free: 44.52 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001533/0.5098, allocations: 1.832 MB / 0.7956 GB, free: 43.59 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007233/0.5105, allocations: 348.9 kB / 0.7959 GB, free: 43.56 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003091/0.5108, allocations: 168.8 kB / 0.7961 GB, free: 43.54 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 3.117e-05/0.5109, allocations: 8.344 kB / 0.7961 GB, free: 43.54 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004744/0.5114, allocations: 216.4 kB / 0.7963 GB, free: 43.44 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=34): time 1.683e-06/0.5114, allocations: 0 / 0.7963 GB, free: 43.44 MB / 0.6544 GB Notification: Performance of matching and sorting (n=34): time 0.0009929/0.5124, allocations: 475.4 kB / 0.7968 GB, free: 43.27 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.082e-05/0.5124, allocations: 63.31 kB / 0.7968 GB, free: 43.21 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003166/0.5127, allocations: 405 kB / 0.7972 GB, free: 43 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 3.298e-05/0.5128, allocations: 41.39 kB / 0.7973 GB, free: 42.96 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001165/0.5129, allocations: 254.3 kB / 0.7975 GB, free: 42.76 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 5.706e-05/0.513, allocations: 98.11 kB / 0.7976 GB, free: 42.69 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001189/0.5131, allocations: 105.8 kB / 0.7977 GB, free: 42.64 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 6.731e-05/0.5132, allocations: 352.5 kB / 0.798 GB, free: 42.3 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003318/0.5135, allocations: 157.6 kB / 0.7982 GB, free: 42.26 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003589/0.5139, allocations: 266.5 kB / 0.7984 GB, free: 42.07 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006078/0.5145, allocations: 396.9 kB / 0.7988 GB, free: 41.83 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.5145, allocations: 6.656 kB / 0.7988 GB, free: 41.82 MB / 0.6544 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0008355/0.5153, allocations: 0.5093 MB / 0.7993 GB, free: 41.61 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.916e-05/0.5154, allocations: 40.16 kB / 0.7994 GB, free: 41.57 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.5154, allocations: 5.875 kB / 0.7994 GB, free: 41.57 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.6e-05/0.5154, allocations: 6 kB / 0.7994 GB, free: 41.57 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002761/0.5157, allocations: 74.3 kB / 0.7994 GB, free: 41.57 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.198e-06/0.5157, allocations: 5.844 kB / 0.7994 GB, free: 41.57 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002995/0.516, allocations: 81.66 kB / 0.7995 GB, free: 41.53 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.778e-05/0.5161, allocations: 18.97 kB / 0.7995 GB, free: 41.53 MB / 0.6544 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.0001601/0.5162, allocations: 202.7 kB / 0.7997 GB, free: 41.38 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.226e-05/0.5163, allocations: 42.19 kB / 0.7998 GB, free: 41.35 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007744/0.517, allocations: 390.5 kB / 0.8001 GB, free: 41.2 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.5171, allocations: 4.844 kB / 0.8001 GB, free: 41.2 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.5171, allocations: 0 / 0.8001 GB, free: 41.2 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.952e-06/0.5171, allocations: 3.375 kB / 0.8001 GB, free: 41.2 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001243/0.5183, allocations: 0.9419 MB / 0.8011 GB, free: 40.65 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.5183, allocations: 2.75 kB / 0.8011 GB, free: 40.65 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002267/0.5186, allocations: 48.3 kB / 0.8011 GB, free: 40.64 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.538e-06/0.5186, allocations: 4.703 kB / 0.8011 GB, free: 40.64 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.435e-05/0.5186, allocations: 9.953 kB / 0.8011 GB, free: 40.64 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.988e-06/0.5186, allocations: 4.844 kB / 0.8011 GB, free: 40.64 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.5186, allocations: 0 / 0.8011 GB, free: 40.64 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001095/0.5197, allocations: 0.6418 MB / 0.8018 GB, free: 40.3 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001144/0.5199, allocations: 154.3 kB / 0.8019 GB, free: 40.16 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.207e-05/0.5199, allocations: 9.141 kB / 0.8019 GB, free: 40.16 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00028/0.5202, allocations: 33.59 kB / 0.802 GB, free: 40.15 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001141/0.5203, allocations: 42.56 kB / 0.802 GB, free: 40.14 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.67e-05/0.5204, allocations: 13.64 kB / 0.802 GB, free: 40.14 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.000248/0.5206, allocations: 271.8 kB / 0.8023 GB, free: 40 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1e-07/0.5206, allocations: 4 kB / 0.8023 GB, free: 39.99 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0003753/0.521, allocations: 90.34 kB / 0.8024 GB, free: 39.97 MB / 0.6544 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.active,preHeatCoil.pumOff.active,$cse1,$cse2,$whenCondition2,$whenCondition1,TMix.T_start,TMix.count,preHeatCoil.preHeaOn.y,preHeatCoil.pumOff.localActive,preHeatCoil.pumOff.newActive,preHeatCoil.pumOff.oldActive,preHeatCoil.toOn.enableFire,preHeatCoil.stateGraphRoot.activeSteps,preHeatCoil.pumOn.localActive,preHeatCoil.pumOn.newActive,preHeatCoil.pumOn.oldActive,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.0001475/0.5211, allocations: 132.7 kB / 0.8025 GB, free: 39.88 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0008496/0.522, allocations: 436 kB / 0.8029 GB, free: 39.71 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.522, allocations: 1.375 kB / 0.8029 GB, free: 39.71 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0003915/0.5224, allocations: 171.3 kB / 0.8031 GB, free: 39.67 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000486/0.5229, allocations: 89.58 kB / 0.8031 GB, free: 39.64 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001201/0.5241, allocations: 0.7422 MB / 0.8039 GB, free: 39.2 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002808/0.5244, allocations: 0.8272 MB / 0.8047 GB, free: 38.49 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0001936/0.5246, allocations: 51.3 kB / 0.8047 GB, free: 38.48 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000115/0.5247, allocations: 40.44 kB / 0.8048 GB, free: 38.47 MB / 0.6544 GB Notification: Performance of SimCode: time 3.41e-07/0.5247, allocations: 0 / 0.8048 GB, free: 38.47 MB / 0.6544 GB Notification: Performance of Templates: time 0.01117/0.5359, allocations: 4.944 MB / 0.8096 GB, free: 38.27 MB / 0.6544 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 -s cvode -lv LOG_STATS > Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe 2>&1)