Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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="mat",numberOfIntervals=5000,variableFilter="time|preHeatCoil.TAirSup|preHeatCoil.TSupSetHea|preHeatCoil.TMix|preHeatCoil.yPum|preHeatCoil.yVal",fileNamePrefix="Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil") translateModel(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|preHeatCoil.TAirSup|preHeatCoil.TSupSetHea|preHeatCoil.TMix|preHeatCoil.yPum|preHeatCoil.yVal",fileNamePrefix="Buildings_9_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.001398/0.001398, allocations: 113.1 kB / 16.41 MB, free: 6.484 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.001555/0.001555, allocations: 189.5 kB / 17.34 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.394/1.394, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.36/2.36, allocations: 390.3 MB / 0.6655 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001504/0.001504, allocations: 63.91 kB / 0.9515 GB, free: 7.637 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8854/0.8869, allocations: 140.4 MB / 1.089 GB, free: 5.75 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.004513/0.8915, allocations: 2.928 MB / 1.091 GB, free: 3.695 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002152/0.8936, allocations: 1.107 MB / 1.093 GB, free: 2.898 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003069/0.894, allocations: 14.44 kB / 1.093 GB, free: 2.895 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0002714/0.8943, allocations: 81.73 kB / 1.093 GB, free: 2.832 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001886/0.8945, allocations: 74.66 kB / 1.093 GB, free: 2.773 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008906/0.8954, allocations: 349.4 kB / 1.093 GB, free: 2.566 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0008443/0.8962, allocations: 0.7179 MB / 1.094 GB, free: 2.199 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007405/0.897, allocations: 498.8 kB / 1.094 GB, free: 1.957 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003133/0.8973, allocations: 250.5 kB / 1.094 GB, free: 1.816 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002962/0.8976, allocations: 249.4 kB / 1.095 GB, free: 1.672 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001366/0.8977, allocations: 69.84 kB / 1.095 GB, free: 1.672 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001847/0.8979, allocations: 79.62 kB / 1.095 GB, free: 1.668 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.000148/0.8981, allocations: 140.1 kB / 1.095 GB, free: 1.57 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002477/0.8983, allocations: 279.4 kB / 1.095 GB, free: 1.367 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.001031/0.8994, allocations: 0.7548 MB / 1.096 GB, free: 1.027 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.8994, allocations: 0.8438 kB / 1.096 GB, free: 1.027 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.754e-06/0.8994, allocations: 0 / 1.096 GB, free: 1.027 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.23e-05/0.8994, allocations: 0 / 1.096 GB, free: 1.027 MB / 0.8575 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.001837/0.9013, allocations: 0.8873 MB / 1.097 GB, free: 368 kB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.698e-05/0.9013, allocations: 9.156 kB / 1.097 GB, free: 368 kB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001424/0.9015, allocations: 58.81 kB / 1.097 GB, free: 340 kB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008101/0.9023, allocations: 448.5 kB / 1.097 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.855e-05/0.9023, allocations: 39.34 kB / 1.097 GB, free: 15.97 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001041/0.9025, allocations: 49.66 kB / 1.097 GB, free: 15.95 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001226/0.9037, allocations: 0.5372 MB / 1.098 GB, free: 15.67 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.644e-05/0.9037, allocations: 1.094 kB / 1.098 GB, free: 15.67 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.562e-05/0.9038, allocations: 21.39 kB / 1.098 GB, free: 15.66 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.526e-05/0.9038, allocations: 11.72 kB / 1.098 GB, free: 15.66 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001102/0.9049, allocations: 401.7 kB / 1.098 GB, free: 15.52 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002721/0.9077, allocations: 1.836 MB / 1.1 GB, free: 14.2 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001031/0.9087, allocations: 363.5 kB / 1.1 GB, free: 14.04 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004525/0.9092, allocations: 173.1 kB / 1.101 GB, free: 13.96 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 3.408e-05/0.9092, allocations: 2.969 kB / 1.101 GB, free: 13.96 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000608/0.9098, allocations: 244.3 kB / 1.101 GB, free: 13.84 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=35): time 2.355e-06/0.9098, allocations: 0 / 1.101 GB, free: 13.84 MB / 0.8731 GB Notification: Performance of matching and sorting (n=35): time 0.00146/0.9113, allocations: 486.5 kB / 1.101 GB, free: 13.66 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.722e-05/0.9114, allocations: 83.88 kB / 1.101 GB, free: 13.57 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005582/0.912, allocations: 400.4 kB / 1.102 GB, free: 13.36 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 5.851e-05/0.912, allocations: 41.56 kB / 1.102 GB, free: 13.32 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.00021/0.9122, allocations: 253.4 kB / 1.102 GB, free: 13.12 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 9.822e-05/0.9123, allocations: 96.95 kB / 1.102 GB, free: 13.04 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001856/0.9125, allocations: 110.2 kB / 1.102 GB, free: 12.98 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001657/0.9127, allocations: 363.9 kB / 1.103 GB, free: 12.64 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004529/0.9132, allocations: 152.1 kB / 1.103 GB, free: 12.6 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005431/0.9137, allocations: 264.6 kB / 1.103 GB, free: 12.41 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009064/0.9146, allocations: 412.3 kB / 1.103 GB, free: 12.14 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.9147, allocations: 5.062 kB / 1.103 GB, free: 12.14 MB / 0.8731 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001385/0.916, allocations: 0.5188 MB / 1.104 GB, free: 11.91 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 5.132e-05/0.9161, allocations: 34.14 kB / 1.104 GB, free: 11.88 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.255e-05/0.9161, allocations: 3.75 kB / 1.104 GB, free: 11.88 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.825e-05/0.9162, allocations: 5.562 kB / 1.104 GB, free: 11.88 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003735/0.9165, allocations: 84.23 kB / 1.104 GB, free: 11.86 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.94e-05/0.9166, allocations: 5.938 kB / 1.104 GB, free: 11.86 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004212/0.917, allocations: 70.69 kB / 1.104 GB, free: 11.82 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.205e-05/0.9171, allocations: 19.95 kB / 1.104 GB, free: 11.82 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 35 ($PRE.preHeatCoil.toOn.enableFire,$PRE.preHeatCoil.toOff.enableFire,preHeatCoil.toOn.t_start,$PRE.preHeatCoil.toOn.t_start,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 (59): * Single equations (assignments): 58 * 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.0002854/0.9173, allocations: 211.4 kB / 1.104 GB, free: 11.65 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.498e-05/0.9174, allocations: 47.94 kB / 1.104 GB, free: 11.62 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001032/0.9185, allocations: 383.6 kB / 1.105 GB, free: 11.47 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.865e-06/0.9185, allocations: 3.906 kB / 1.105 GB, free: 11.47 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.9185, allocations: 4.516 kB / 1.105 GB, free: 11.46 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.688e-06/0.9185, allocations: 3.422 kB / 1.105 GB, free: 11.46 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001833/0.9204, allocations: 0.9565 MB / 1.106 GB, free: 10.89 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.9204, allocations: 5.406 kB / 1.106 GB, free: 10.89 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002629/0.9206, allocations: 42.84 kB / 1.106 GB, free: 10.89 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.682e-06/0.9207, allocations: 7.484 kB / 1.106 GB, free: 10.89 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.965e-05/0.9207, allocations: 8.359 kB / 1.106 GB, free: 10.88 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.973e-06/0.9207, allocations: 7.5 kB / 1.106 GB, free: 10.88 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.514e-06/0.9207, allocations: 0 / 1.106 GB, free: 10.88 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001429/0.9222, allocations: 0.6438 MB / 1.106 GB, free: 10.54 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001896/0.9224, allocations: 155.2 kB / 1.107 GB, free: 10.4 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.631e-05/0.9224, allocations: 12.22 kB / 1.107 GB, free: 10.39 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003249/0.9228, allocations: 38.09 kB / 1.107 GB, free: 10.38 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001399/0.9229, allocations: 48.2 kB / 1.107 GB, free: 10.37 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.414e-05/0.9229, allocations: 14.86 kB / 1.107 GB, free: 10.36 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0003491/0.9233, allocations: 267.7 kB / 1.107 GB, free: 10.21 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.71e-07/0.9233, allocations: 1.094 kB / 1.107 GB, free: 10.21 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.000525/0.9239, allocations: 94.91 kB / 1.107 GB, free: 10.19 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (preHeatCoil.preHeaCoiCon.I.y) * Number of discrete variables: 21 (preHeatCoil.toOn.t_start,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: 5 (TMix.count,preHeatCoil.pumOff.newActive,preHeatCoil.pumOn.newActive,preHeatCoil.preHeaOn.y,preHeatCoil.toOn.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.0002108/0.9241, allocations: 125.9 kB / 1.107 GB, free: 10.09 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001104/0.9252, allocations: 448.9 kB / 1.108 GB, free: 9.902 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.9252, allocations: 0 / 1.108 GB, free: 9.902 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0004672/0.9257, allocations: 176 kB / 1.108 GB, free: 9.852 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006025/0.9263, allocations: 95.89 kB / 1.108 GB, free: 9.809 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001675/0.928, allocations: 0.7715 MB / 1.109 GB, free: 9.328 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004427/0.9284, allocations: 0.8247 MB / 1.109 GB, free: 8.621 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001622/0.9286, allocations: 43.31 kB / 1.109 GB, free: 8.609 MB / 0.8731 GB Notification: Performance of SimCode: time 9.82e-07/0.9286, allocations: 0 / 1.109 GB, free: 8.609 MB / 0.8731 GB Notification: Performance of Templates: time 0.01438/0.943, allocations: 6.01 MB / 1.115 GB, free: 7.867 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.makefile (rm -f Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; mkfifo Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe >> ../files/Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.sim & ./Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches