Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_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_latest_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.001467/0.001467, allocations: 109.3 kB / 16.41 MB, free: 6.445 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.00235/0.00235, allocations: 183 kB / 17.34 MB, free: 5.742 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.371/1.371, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.605/2.605, allocations: 461.9 MB / 0.7355 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001345/0.001345, allocations: 60.12 kB / 1.055 GB, free: 7.727 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.891/0.8924, allocations: 157.4 MB / 1.208 GB, free: 13.64 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.004521/0.897, allocations: 2.937 MB / 1.211 GB, free: 10.69 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002338/0.8993, allocations: 1.099 MB / 1.212 GB, free: 9.586 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004985/0.8999, allocations: 11.94 kB / 1.212 GB, free: 9.574 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0003431/0.9002, allocations: 79.14 kB / 1.212 GB, free: 9.496 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0003601/0.9006, allocations: 83.19 kB / 1.213 GB, free: 9.414 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.001023/0.9016, allocations: 335 kB / 1.213 GB, free: 9.09 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.001032/0.9027, allocations: 0.7263 MB / 1.214 GB, free: 8.359 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008307/0.9035, allocations: 0.4886 MB / 1.214 GB, free: 7.859 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003738/0.9039, allocations: 243.1 kB / 1.214 GB, free: 7.621 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003634/0.9043, allocations: 254.8 kB / 1.214 GB, free: 7.371 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0001457/0.9044, allocations: 68 kB / 1.215 GB, free: 7.305 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001669/0.9046, allocations: 79.98 kB / 1.215 GB, free: 7.227 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001407/0.9048, allocations: 143.5 kB / 1.215 GB, free: 7.086 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0002914/0.9051, allocations: 274.6 kB / 1.215 GB, free: 6.816 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.000893/0.906, allocations: 0.7569 MB / 1.216 GB, free: 6.062 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.906, allocations: 0 / 1.216 GB, free: 6.062 MB / 0.9356 GB Notification: Performance of FrontEnd: time 3.707e-06/0.906, allocations: 0 / 1.216 GB, free: 6.062 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 2.745e-05/0.906, allocations: 3.938 kB / 1.216 GB, free: 6.059 MB / 0.9356 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.002113/0.9082, allocations: 0.8831 MB / 1.217 GB, free: 5.121 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.751e-05/0.9082, allocations: 8.031 kB / 1.217 GB, free: 5.113 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001683/0.9084, allocations: 60.28 kB / 1.217 GB, free: 5.055 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008484/0.9092, allocations: 448.5 kB / 1.217 GB, free: 4.578 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.556e-05/0.9093, allocations: 45.36 kB / 1.217 GB, free: 4.535 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.045e-05/0.9094, allocations: 52.38 kB / 1.217 GB, free: 4.484 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001127/0.9105, allocations: 0.5355 MB / 1.218 GB, free: 3.918 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.838e-05/0.9106, allocations: 3.938 kB / 1.218 GB, free: 3.914 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.835e-05/0.9106, allocations: 16 kB / 1.218 GB, free: 3.898 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.315e-05/0.9106, allocations: 12 kB / 1.218 GB, free: 3.887 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00101/0.9117, allocations: 395.7 kB / 1.218 GB, free: 3.5 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002564/0.9142, allocations: 1.833 MB / 1.22 GB, free: 1.59 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009724/0.9152, allocations: 369.5 kB / 1.22 GB, free: 1.211 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004151/0.9157, allocations: 172.4 kB / 1.22 GB, free: 1.039 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 3.306e-05/0.9157, allocations: 4 kB / 1.22 GB, free: 1.035 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005676/0.9163, allocations: 257.5 kB / 1.221 GB, free: 0.7617 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=35): time 5.27e-06/0.9163, allocations: 4 kB / 1.221 GB, free: 0.7578 MB / 0.9356 GB Notification: Performance of matching and sorting (n=35): time 0.001404/0.9177, allocations: 484.7 kB / 1.221 GB, free: 288 kB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.76e-05/0.9178, allocations: 85.11 kB / 1.221 GB, free: 184 kB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005898/0.9184, allocations: 405.8 kB / 1.222 GB, free: 15.77 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 6.248e-05/0.9185, allocations: 37.7 kB / 1.222 GB, free: 15.73 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002525/0.9187, allocations: 248.2 kB / 1.222 GB, free: 15.48 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001131/0.9188, allocations: 102.6 kB / 1.222 GB, free: 15.38 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001787/0.919, allocations: 106.2 kB / 1.222 GB, free: 15.27 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001512/0.9192, allocations: 358.8 kB / 1.222 GB, free: 14.91 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004263/0.9196, allocations: 153 kB / 1.223 GB, free: 14.76 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004959/0.9201, allocations: 261.8 kB / 1.223 GB, free: 14.46 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008479/0.921, allocations: 411.4 kB / 1.223 GB, free: 14.01 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.314e-06/0.921, allocations: 4 kB / 1.223 GB, free: 14.01 MB / 0.9512 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001186/0.9222, allocations: 0.5148 MB / 1.224 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 4.629e-05/0.9223, allocations: 41.62 kB / 1.224 GB, free: 13.43 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.053e-05/0.9223, allocations: 4 kB / 1.224 GB, free: 13.43 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.819e-05/0.9223, allocations: 4 kB / 1.224 GB, free: 13.43 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003446/0.9227, allocations: 71.89 kB / 1.224 GB, free: 13.36 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.679e-05/0.9227, allocations: 7.938 kB / 1.224 GB, free: 13.35 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000453/0.9231, allocations: 83.64 kB / 1.224 GB, free: 13.27 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.064e-05/0.9232, allocations: 27.92 kB / 1.224 GB, free: 13.24 MB / 0.9512 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.0003539/0.9236, allocations: 193.8 kB / 1.224 GB, free: 13.04 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001007/0.9237, allocations: 47.38 kB / 1.224 GB, free: 13 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009916/0.9247, allocations: 383.4 kB / 1.225 GB, free: 12.62 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.174e-06/0.9247, allocations: 4 kB / 1.225 GB, free: 12.61 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/0.9247, allocations: 7.984 kB / 1.225 GB, free: 12.61 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.574e-06/0.9247, allocations: 3.984 kB / 1.225 GB, free: 12.6 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00171/0.9264, allocations: 0.9561 MB / 1.226 GB, free: 11.59 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.9265, allocations: 0 / 1.226 GB, free: 11.59 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002737/0.9267, allocations: 51.89 kB / 1.226 GB, free: 11.54 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.245e-06/0.9268, allocations: 4 kB / 1.226 GB, free: 11.53 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.863e-05/0.9268, allocations: 8 kB / 1.226 GB, free: 11.52 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.558e-06/0.9268, allocations: 4.031 kB / 1.226 GB, free: 11.52 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.9268, allocations: 3.984 kB / 1.226 GB, free: 11.52 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001314/0.9281, allocations: 0.6469 MB / 1.226 GB, free: 10.85 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001725/0.9283, allocations: 160.3 kB / 1.226 GB, free: 10.67 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.666e-05/0.9284, allocations: 8 kB / 1.226 GB, free: 10.66 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003288/0.9287, allocations: 39.95 kB / 1.226 GB, free: 10.62 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001458/0.9289, allocations: 51.94 kB / 1.226 GB, free: 10.57 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.219e-05/0.9289, allocations: 12 kB / 1.226 GB, free: 10.56 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0003005/0.9292, allocations: 263.2 kB / 1.227 GB, free: 10.3 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9292, allocations: 4 kB / 1.227 GB, free: 10.3 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0004753/0.9297, allocations: 91.73 kB / 1.227 GB, free: 10.21 MB / 0.9512 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.000195/0.9299, allocations: 125.4 kB / 1.227 GB, free: 10.08 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001049/0.931, allocations: 439.1 kB / 1.227 GB, free: 9.641 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.594e-06/0.931, allocations: 0 / 1.227 GB, free: 9.641 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0004505/0.9314, allocations: 184.7 kB / 1.228 GB, free: 9.461 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000568/0.932, allocations: 94.73 kB / 1.228 GB, free: 9.371 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001611/0.9336, allocations: 0.7654 MB / 1.228 GB, free: 8.562 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004766/0.9341, allocations: 0.8274 MB / 1.229 GB, free: 7.711 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001608/0.9343, allocations: 35.44 kB / 1.229 GB, free: 7.676 MB / 0.9512 GB Notification: Performance of SimCode: time 6.01e-07/0.9343, allocations: 0 / 1.229 GB, free: 7.676 MB / 0.9512 GB Notification: Performance of Templates: time 0.01097/0.9453, allocations: 6.027 MB / 1.235 GB, free: 1.68 MB / 0.9512 GB make -j1 -f Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.makefile (rm -f Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; mkfifo Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe >> ../files/Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.sim & ./Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches