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.00838/0.00838, allocations: 99.95 kB / 15.73 MB, free: 6.059 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.001643/0.001643, allocations: 189.4 kB / 16.67 MB, free: 5.973 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.465/1.465, allocations: 222.9 MB / 240.4 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.337/2.337, allocations: 390.2 MB / 0.6648 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001375/0.001375, allocations: 59.91 kB / 0.9508 GB, free: 7.66 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.054/1.055, allocations: 140.4 MB / 1.088 GB, free: 5.516 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.004474/1.06, allocations: 2.931 MB / 1.091 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002334/1.062, allocations: 1.096 MB / 1.092 GB, free: 2.676 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003803/1.062, allocations: 13.66 kB / 1.092 GB, free: 2.672 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0002764/1.063, allocations: 78.38 kB / 1.092 GB, free: 2.613 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.000224/1.063, allocations: 87.97 kB / 1.092 GB, free: 2.543 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009868/1.064, allocations: 344 kB / 1.092 GB, free: 2.34 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.001017/1.065, allocations: 0.7222 MB / 1.093 GB, free: 1.969 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007656/1.066, allocations: 0.4946 MB / 1.094 GB, free: 1.719 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003167/1.066, allocations: 247.6 kB / 1.094 GB, free: 1.582 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003194/1.066, allocations: 254.2 kB / 1.094 GB, free: 1.434 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001279/1.067, allocations: 69.75 kB / 1.094 GB, free: 1.434 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000188/1.067, allocations: 78.38 kB / 1.094 GB, free: 1.43 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001637/1.067, allocations: 143.9 kB / 1.094 GB, free: 1.328 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0003141/1.067, allocations: 275.4 kB / 1.095 GB, free: 1.129 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.001364/1.069, allocations: 0.7583 MB / 1.095 GB, free: 0.7891 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/1.069, allocations: 0.5625 kB / 1.095 GB, free: 0.7891 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.635e-06/1.069, allocations: 0 / 1.095 GB, free: 0.7891 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.412e-05/1.069, allocations: 1.062 kB / 1.095 GB, free: 0.7891 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.002205/1.071, allocations: 0.8995 MB / 1.096 GB, free: 112 kB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.518e-05/1.071, allocations: 9.906 kB / 1.096 GB, free: 112 kB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002156/1.071, allocations: 63.2 kB / 1.096 GB, free: 80 kB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009605/1.072, allocations: 448 kB / 1.097 GB, free: 15.73 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.488e-05/1.072, allocations: 38.97 kB / 1.097 GB, free: 15.72 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001152/1.072, allocations: 53.97 kB / 1.097 GB, free: 15.7 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001234/1.074, allocations: 0.5375 MB / 1.097 GB, free: 15.42 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.627e-05/1.074, allocations: 4.938 kB / 1.097 GB, free: 15.41 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.211e-05/1.074, allocations: 17.17 kB / 1.097 GB, free: 15.4 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.366e-05/1.074, allocations: 11.59 kB / 1.097 GB, free: 15.4 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001073/1.075, allocations: 398 kB / 1.098 GB, free: 15.27 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002835/1.078, allocations: 1.837 MB / 1.099 GB, free: 13.94 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001036/1.079, allocations: 363 kB / 1.1 GB, free: 13.78 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004554/1.079, allocations: 176.3 kB / 1.1 GB, free: 13.71 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 4.107e-05/1.079, allocations: 9 kB / 1.1 GB, free: 13.7 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006148/1.08, allocations: 243.1 kB / 1.1 GB, free: 13.58 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=35): time 2.354e-06/1.08, allocations: 0 / 1.1 GB, free: 13.58 MB / 0.8731 GB Notification: Performance of matching and sorting (n=35): time 0.001436/1.081, allocations: 483.9 kB / 1.101 GB, free: 13.41 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.491e-05/1.081, allocations: 90.98 kB / 1.101 GB, free: 13.3 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005745/1.082, allocations: 404.5 kB / 1.101 GB, free: 13.09 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 6.02e-05/1.082, allocations: 49.66 kB / 1.101 GB, free: 13.05 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002252/1.082, allocations: 249.6 kB / 1.101 GB, free: 12.84 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001121/1.082, allocations: 105.4 kB / 1.102 GB, free: 12.76 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001849/1.083, allocations: 102 kB / 1.102 GB, free: 12.71 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001558/1.083, allocations: 355.4 kB / 1.102 GB, free: 12.38 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004631/1.083, allocations: 153.4 kB / 1.102 GB, free: 12.33 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005286/1.084, allocations: 272.2 kB / 1.102 GB, free: 12.14 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008815/1.085, allocations: 413.3 kB / 1.103 GB, free: 11.87 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/1.085, allocations: 5.531 kB / 1.103 GB, free: 11.87 MB / 0.8731 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001358/1.086, allocations: 0.5286 MB / 1.103 GB, free: 11.62 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 5.319e-05/1.086, allocations: 34.25 kB / 1.103 GB, free: 11.59 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.245e-05/1.086, allocations: 3.344 kB / 1.103 GB, free: 11.59 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.357e-05/1.086, allocations: 6.297 kB / 1.103 GB, free: 11.59 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003646/1.086, allocations: 76.27 kB / 1.103 GB, free: 11.58 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.406e-05/1.087, allocations: 10.56 kB / 1.103 GB, free: 11.57 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004086/1.087, allocations: 73.92 kB / 1.103 GB, free: 11.54 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.588e-05/1.087, allocations: 20.2 kB / 1.104 GB, free: 11.54 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.0002991/1.087, allocations: 206.5 kB / 1.104 GB, free: 11.37 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.101e-05/1.087, allocations: 47.38 kB / 1.104 GB, free: 11.34 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009475/1.088, allocations: 384.4 kB / 1.104 GB, free: 11.19 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.174e-06/1.088, allocations: 5.578 kB / 1.104 GB, free: 11.19 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/1.088, allocations: 0 / 1.104 GB, free: 11.19 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/1.088, allocations: 3.234 kB / 1.104 GB, free: 11.19 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001735/1.09, allocations: 0.9607 MB / 1.105 GB, free: 10.61 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.279e-06/1.09, allocations: 1.062 kB / 1.105 GB, free: 10.61 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002726/1.09, allocations: 51.73 kB / 1.105 GB, free: 10.61 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.372e-06/1.09, allocations: 2.188 kB / 1.105 GB, free: 10.61 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.028e-05/1.09, allocations: 9.594 kB / 1.105 GB, free: 10.6 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.558e-06/1.09, allocations: 1.469 kB / 1.105 GB, free: 10.6 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.549e-06/1.09, allocations: 5.891 kB / 1.105 GB, free: 10.6 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001379/1.092, allocations: 0.6471 MB / 1.106 GB, free: 10.26 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001888/1.092, allocations: 150.9 kB / 1.106 GB, free: 10.12 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.766e-05/1.092, allocations: 17.17 kB / 1.106 GB, free: 10.11 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003228/1.092, allocations: 33.91 kB / 1.106 GB, free: 10.1 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001338/1.093, allocations: 48.12 kB / 1.106 GB, free: 10.09 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.109e-05/1.093, allocations: 15.11 kB / 1.106 GB, free: 10.08 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0003648/1.093, allocations: 264 kB / 1.106 GB, free: 9.938 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.6e-07/1.093, allocations: 0 / 1.106 GB, free: 9.938 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0005059/1.094, allocations: 103.6 kB / 1.106 GB, free: 9.906 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.0001826/1.094, allocations: 122.3 kB / 1.106 GB, free: 9.809 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001122/1.095, allocations: 448.2 kB / 1.107 GB, free: 9.621 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/1.095, allocations: 3.938 kB / 1.107 GB, free: 9.617 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0005353/1.095, allocations: 183.6 kB / 1.107 GB, free: 9.562 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006051/1.096, allocations: 85.77 kB / 1.107 GB, free: 9.531 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001649/1.098, allocations: 0.7582 MB / 1.108 GB, free: 9.066 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005111/1.098, allocations: 0.8238 MB / 1.109 GB, free: 8.363 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0002554/1.098, allocations: 62.22 kB / 1.109 GB, free: 8.34 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001356/1.099, allocations: 43.94 kB / 1.109 GB, free: 8.324 MB / 0.8731 GB Notification: Performance of SimCode: time 1.203e-06/1.099, allocations: 0 / 1.109 GB, free: 8.324 MB / 0.8731 GB Notification: Performance of Templates: time 0.01315/1.112, allocations: 5.037 MB / 1.114 GB, free: 7.93 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/jenkins/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