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.001517/0.001517, allocations: 107.7 kB / 16.41 MB, free: 6.438 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.001768/0.001769, allocations: 190.7 kB / 17.35 MB, free: 5.703 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.469/1.469, allocations: 222.9 MB / 241.1 MB, free: 15.08 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.301/2.301, allocations: 390.3 MB / 0.6655 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00161/0.00161, allocations: 67.89 kB / 0.9515 GB, free: 7.672 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.16/1.161, allocations: 140.4 MB / 1.089 GB, free: 5.512 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.005628/1.167, allocations: 2.926 MB / 1.091 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.003011/1.17, allocations: 1.104 MB / 1.093 GB, free: 2.668 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003762/1.17, allocations: 14.28 kB / 1.093 GB, free: 2.664 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0003157/1.171, allocations: 82.02 kB / 1.093 GB, free: 2.602 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0002078/1.171, allocations: 80.67 kB / 1.093 GB, free: 2.539 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009436/1.172, allocations: 339.4 kB / 1.093 GB, free: 2.34 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.000973/1.173, allocations: 0.7108 MB / 1.094 GB, free: 1.98 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008458/1.174, allocations: 0.4982 MB / 1.094 GB, free: 1.727 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003178/1.174, allocations: 247.7 kB / 1.094 GB, free: 1.59 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003773/1.175, allocations: 249.5 kB / 1.095 GB, free: 1.445 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.000154/1.175, allocations: 69.53 kB / 1.095 GB, free: 1.445 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002005/1.175, allocations: 80.3 kB / 1.095 GB, free: 1.441 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.00018/1.175, allocations: 139.8 kB / 1.095 GB, free: 1.344 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002985/1.175, allocations: 282.6 kB / 1.095 GB, free: 1.137 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.001211/1.177, allocations: 0.7515 MB / 1.096 GB, free: 0.8047 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/1.177, allocations: 1.344 kB / 1.096 GB, free: 0.8047 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.984e-06/1.177, allocations: 4 kB / 1.096 GB, free: 0.8008 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.808e-06/1.177, allocations: 0 / 1.096 GB, free: 0.8008 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.001913/1.179, allocations: 0.8823 MB / 1.097 GB, free: 140 kB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.637e-05/1.179, allocations: 9.156 kB / 1.097 GB, free: 140 kB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001534/1.179, allocations: 58.95 kB / 1.097 GB, free: 112 kB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008813/1.18, allocations: 452.5 kB / 1.097 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.332e-05/1.18, allocations: 38.8 kB / 1.097 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001201/1.18, allocations: 53.98 kB / 1.097 GB, free: 15.73 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001329/1.181, allocations: 0.537 MB / 1.098 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.622e-05/1.181, allocations: 0.6562 kB / 1.098 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.906e-05/1.181, allocations: 21.97 kB / 1.098 GB, free: 15.43 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.46e-05/1.181, allocations: 10.91 kB / 1.098 GB, free: 15.43 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001181/1.183, allocations: 402.7 kB / 1.098 GB, free: 15.29 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002879/1.185, allocations: 1.831 MB / 1.1 GB, free: 13.97 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0011/1.187, allocations: 359.1 kB / 1.1 GB, free: 13.81 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004729/1.187, allocations: 180.2 kB / 1.101 GB, free: 13.74 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 3.817e-05/1.187, allocations: 3.844 kB / 1.101 GB, free: 13.74 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000735/1.188, allocations: 247 kB / 1.101 GB, free: 13.61 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=35): time 2.795e-06/1.188, allocations: 0 / 1.101 GB, free: 13.61 MB / 0.8731 GB Notification: Performance of matching and sorting (n=35): time 0.001554/1.189, allocations: 483 kB / 1.101 GB, free: 13.44 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.82e-05/1.19, allocations: 91.91 kB / 1.101 GB, free: 13.34 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005998/1.19, allocations: 399.9 kB / 1.102 GB, free: 13.13 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 6.519e-05/1.19, allocations: 45.25 kB / 1.102 GB, free: 13.09 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002502/1.19, allocations: 246.2 kB / 1.102 GB, free: 12.89 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001116/1.191, allocations: 96.11 kB / 1.102 GB, free: 12.81 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002058/1.191, allocations: 110.7 kB / 1.102 GB, free: 12.75 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001763/1.191, allocations: 355.3 kB / 1.103 GB, free: 12.42 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005022/1.191, allocations: 157.6 kB / 1.103 GB, free: 12.37 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005978/1.192, allocations: 264.8 kB / 1.103 GB, free: 12.19 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009646/1.193, allocations: 416.2 kB / 1.103 GB, free: 11.91 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.109e-06/1.193, allocations: 1.125 kB / 1.103 GB, free: 11.91 MB / 0.8731 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001535/1.195, allocations: 0.5175 MB / 1.104 GB, free: 11.68 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 5.852e-05/1.195, allocations: 38.45 kB / 1.104 GB, free: 11.64 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.51e-05/1.195, allocations: 3.219 kB / 1.104 GB, free: 11.64 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.01e-05/1.195, allocations: 5.75 kB / 1.104 GB, free: 11.64 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004071/1.195, allocations: 76.34 kB / 1.104 GB, free: 11.63 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.175e-05/1.195, allocations: 10.83 kB / 1.104 GB, free: 11.63 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000417/1.196, allocations: 73.16 kB / 1.104 GB, free: 11.59 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.486e-05/1.196, allocations: 21.06 kB / 1.104 GB, free: 11.59 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.0002722/1.196, allocations: 206.2 kB / 1.104 GB, free: 11.42 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.333e-05/1.196, allocations: 56.23 kB / 1.104 GB, free: 11.39 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001057/1.197, allocations: 383.2 kB / 1.105 GB, free: 11.23 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.292e-05/1.197, allocations: 3.016 kB / 1.105 GB, free: 11.23 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/1.197, allocations: 0.7031 kB / 1.105 GB, free: 11.23 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001819/1.197, allocations: 148 kB / 1.105 GB, free: 11.1 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.635e-05/1.197, allocations: 11.64 kB / 1.105 GB, free: 11.09 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000305/1.198, allocations: 33.22 kB / 1.105 GB, free: 11.09 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001414/1.198, allocations: 45.2 kB / 1.105 GB, free: 11.07 MB / 0.8731 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001356/1.199, allocations: 0.5461 MB / 1.106 GB, free: 10.78 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001613/1.201, allocations: 0.7905 MB / 1.106 GB, free: 10.3 MB / 0.8731 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005093/1.201, allocations: 177.8 kB / 1.106 GB, free: 10.24 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0003919/1.202, allocations: 268.9 kB / 1.107 GB, free: 10.09 MB / 0.8731 GB Notification: Performance of Backend: time 6.61e-07/1.202, allocations: 0 / 1.107 GB, free: 10.09 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001261/1.203, allocations: 394 kB / 1.107 GB, free: 9.879 MB / 0.8731 GB Notification: Performance of SimCode: time 0.001887/1.205, allocations: 1.153 MB / 1.108 GB, free: 8.996 MB / 0.8731 GB Notification: Performance of Templates: time 0.01504/1.22, allocations: 5.681 MB / 1.114 GB, free: 8.551 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