Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009479/0.0009479, allocations: 80.94 kB / 19.94 MB, free: 4.547 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001093/0.001093, allocations: 173 kB / 23.36 MB, free: 1.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9717/0.9717, allocations: 177.1 MB / 203.8 MB, free: 5.492 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.248/2.248, allocations: 438.8 MB / 0.6827 GB, free: 13.58 MB / 0.6511 GB " [Timeout remaining time 178] Using package Buildings with version 14.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|tanSta.TTan.[0-9,]+.|tanSta.THig|tanSta.TLow|tanSta.y.[0-9,]+.",fileNamePrefix="Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus") translateModel(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|tanSta.TTan.[0-9,]+.|tanSta.THig|tanSta.TLow|tanSta.y.[0-9,]+.",fileNamePrefix="Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.543e-06/1.543e-06, allocations: 0 / 0.8386 GB, free: 14.21 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.167e-05/2.321e-05, allocations: 2.312 kB / 0.8386 GB, free: 14.21 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.003686/0.003709, allocations: 2.228 MB / 0.8408 GB, free: 11.96 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.002444/0.006153, allocations: 1.42 MB / 0.8421 GB, free: 10.54 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001837/0.006336, allocations: 7.938 kB / 0.8421 GB, free: 10.53 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 0.0004813/0.006818, allocations: 163.3 kB / 0.8423 GB, free: 10.37 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 0.0005183/0.007336, allocations: 234.8 kB / 0.8425 GB, free: 10.14 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004029/0.007739, allocations: 187.4 kB / 0.8427 GB, free: 9.957 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.0005035/0.008242, allocations: 438.8 kB / 0.8431 GB, free: 9.527 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001968/0.008439, allocations: 67.52 kB / 0.8432 GB, free: 9.465 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001237/0.009677, allocations: 318.3 kB / 0.8435 GB, free: 9.188 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000228/0.009905, allocations: 147.6 kB / 0.8436 GB, free: 9.043 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 4.45e-05/0.009949, allocations: 24 kB / 0.8437 GB, free: 9.02 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001654/0.01011, allocations: 75.91 kB / 0.8437 GB, free: 8.945 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 0.0001384/0.01025, allocations: 115.6 kB / 0.8438 GB, free: 8.832 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 0.00011/0.01036, allocations: 91.64 kB / 0.8439 GB, free: 8.742 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0005052/0.01087, allocations: 330.7 kB / 0.8442 GB, free: 8.418 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.01087, allocations: 0 / 0.8442 GB, free: 8.418 MB / 0.8073 GB Notification: Performance of FrontEnd: time 1.052e-06/0.01087, allocations: 0 / 0.8442 GB, free: 8.418 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 6.582e-06/0.01088, allocations: 4 kB / 0.8442 GB, free: 8.414 MB / 0.8073 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0008556/0.01174, allocations: 0.6151 MB / 0.8448 GB, free: 7.773 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.932e-05/0.01177, allocations: 8.625 kB / 0.8449 GB, free: 7.766 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.947e-05/0.01186, allocations: 36.89 kB / 0.8449 GB, free: 7.73 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004333/0.0123, allocations: 307.7 kB / 0.8452 GB, free: 7.402 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.64e-05/0.01232, allocations: 12.38 kB / 0.8452 GB, free: 7.391 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.967e-05/0.01235, allocations: 16.38 kB / 0.8452 GB, free: 7.375 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002629/0.01262, allocations: 181.9 kB / 0.8454 GB, free: 7.172 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.247e-05/0.01263, allocations: 7.875 kB / 0.8454 GB, free: 7.164 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.809e-05/0.01265, allocations: 7.984 kB / 0.8454 GB, free: 7.156 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.436e-06/0.01266, allocations: 4 kB / 0.8454 GB, free: 7.152 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.709e-05/0.01274, allocations: 37.62 kB / 0.8454 GB, free: 7.113 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007433/0.01349, allocations: 496.6 kB / 0.8459 GB, free: 6.602 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002004/0.01369, allocations: 174.6 kB / 0.8461 GB, free: 6.41 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.365e-05/0.01373, allocations: 25.7 kB / 0.8461 GB, free: 6.379 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.711e-05/0.01375, allocations: 8 kB / 0.8461 GB, free: 6.371 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001592/0.01391, allocations: 103.9 kB / 0.8462 GB, free: 6.25 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=12): time 1.363e-06/0.01391, allocations: 0 / 0.8462 GB, free: 6.25 MB / 0.8073 GB Notification: Performance of matching and sorting (n=12): time 0.0002325/0.01414, allocations: 115.6 kB / 0.8463 GB, free: 6.129 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.98e-05/0.0142, allocations: 110.8 kB / 0.8464 GB, free: 5.996 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003845/0.01458, allocations: 398.2 kB / 0.8468 GB, free: 5.594 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 2.85e-05/0.01461, allocations: 41.64 kB / 0.8468 GB, free: 5.547 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001001/0.01471, allocations: 153.5 kB / 0.847 GB, free: 5.395 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 3.837e-05/0.01475, allocations: 39.72 kB / 0.847 GB, free: 5.355 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001048/0.01486, allocations: 81.58 kB / 0.8471 GB, free: 5.27 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 0.0001171/0.01497, allocations: 350.7 kB / 0.8474 GB, free: 4.918 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.8e-05/0.01504, allocations: 34.88 kB / 0.8475 GB, free: 4.883 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001305/0.01517, allocations: 164.5 kB / 0.8476 GB, free: 4.684 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001547/0.01533, allocations: 119.4 kB / 0.8477 GB, free: 4.551 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/0.01533, allocations: 0 / 0.8477 GB, free: 4.551 MB / 0.8073 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0002632/0.01559, allocations: 171.1 kB / 0.8479 GB, free: 4.375 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.43e-05/0.01561, allocations: 4 kB / 0.8479 GB, free: 4.371 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.295e-06/0.01562, allocations: 7.938 kB / 0.8479 GB, free: 4.363 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/0.01563, allocations: 0 / 0.8479 GB, free: 4.363 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001702/0.0158, allocations: 47.91 kB / 0.848 GB, free: 4.316 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/0.01581, allocations: 4 kB / 0.848 GB, free: 4.312 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001409/0.01595, allocations: 24.03 kB / 0.848 GB, free: 4.289 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.012e-05/0.01598, allocations: 16 kB / 0.848 GB, free: 4.273 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.TTanBot.tab.nextTimeEvent,$whenCondition2,$PRE.TTanTop.tab.nextTimeEvent,$whenCondition1,tanSta.gre.y,TTanBot.tab.nextTimeEventScaled,$PRE.TTanBot.tab.nextTimeEventScaled,TTanBot.tab.nextTimeEvent,tanSta.hysEmp.y,$PRE.tanSta.hysEmp.y,TTanTop.tab.nextTimeEventScaled,$PRE.TTanTop.tab.nextTimeEventScaled,TTanTop.tab.nextTimeEvent,tanSta.hysCha.y,$PRE.tanSta.hysCha.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * 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.0001317/0.01611, allocations: 138.5 kB / 0.8481 GB, free: 4.125 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.647e-05/0.01615, allocations: 23.97 kB / 0.8482 GB, free: 4.102 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001995/0.01635, allocations: 121 kB / 0.8483 GB, free: 3.977 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-06/0.01636, allocations: 0 / 0.8483 GB, free: 3.977 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.654e-06/0.01636, allocations: 0 / 0.8483 GB, free: 3.977 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.802e-06/0.01637, allocations: 7.984 kB / 0.8483 GB, free: 3.969 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000191/0.01656, allocations: 157.7 kB / 0.8484 GB, free: 3.797 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.01656, allocations: 4 kB / 0.8484 GB, free: 3.793 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.249e-05/0.0166, allocations: 8 kB / 0.8484 GB, free: 3.785 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.0166, allocations: 0 / 0.8484 GB, free: 3.785 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.292e-05/0.01662, allocations: 7.984 kB / 0.8485 GB, free: 3.777 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.689e-06/0.01662, allocations: 3.938 kB / 0.8485 GB, free: 3.773 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.01662, allocations: 3.938 kB / 0.8485 GB, free: 3.77 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001681/0.01679, allocations: 134.5 kB / 0.8486 GB, free: 3.613 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 6.046e-05/0.01685, allocations: 47.67 kB / 0.8486 GB, free: 3.566 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.366e-05/0.0169, allocations: 4 kB / 0.8486 GB, free: 3.562 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.74e-05/0.01698, allocations: 11.98 kB / 0.8486 GB, free: 3.551 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.33e-05/0.01705, allocations: 27.91 kB / 0.8487 GB, free: 3.523 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.532e-05/0.01706, allocations: 7.984 kB / 0.8487 GB, free: 3.516 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 0.0001898/0.01725, allocations: 160.6 kB / 0.8488 GB, free: 3.355 MB / 0.8073 GB Notification: Performance of sort global known variables: time 1e-07/0.01725, allocations: 0 / 0.8488 GB, free: 3.355 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0003144/0.01757, allocations: 71.88 kB / 0.8489 GB, free: 3.285 MB / 0.8073 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,tanSta.hysEmp.y,TTanBot.tab.nextTimeEvent,TTanBot.tab.nextTimeEventScaled,$whenCondition1,tanSta.hysCha.y,TTanTop.tab.nextTimeEvent,TTanTop.tab.nextTimeEventScaled) * Number of discrete states: 6 (tanSta.hysCha.y,TTanTop.tab.nextTimeEvent,TTanTop.tab.nextTimeEventScaled,tanSta.hysEmp.y,TTanBot.tab.nextTimeEvent,TTanBot.tab.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.001661/0.01923, allocations: 0.5214 MB / 0.8494 GB, free: 2.996 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0002261/0.01945, allocations: 113.2 kB / 0.8495 GB, free: 2.883 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 7.554e-06/0.01946, allocations: 4 kB / 0.8495 GB, free: 2.879 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 7.088e-05/0.01953, allocations: 36.83 kB / 0.8496 GB, free: 2.84 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003553/0.01989, allocations: 111.4 kB / 0.8497 GB, free: 2.742 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009991/0.02089, allocations: 0.5499 MB / 0.8502 GB, free: 2.156 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.362e-05/0.02098, allocations: 112.6 kB / 0.8503 GB, free: 2.027 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 0.0001233/0.0211, allocations: 47.45 kB / 0.8504 GB, free: 1.98 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002231/0.02133, allocations: 115.3 kB / 0.8505 GB, free: 1.867 MB / 0.8073 GB Notification: Performance of SimCode: time 8.11e-07/0.02133, allocations: 0 / 0.8505 GB, free: 1.867 MB / 0.8073 GB Notification: Performance of Templates: time 0.01069/0.03202, allocations: 5.463 MB / 0.8558 GB, free: 12.51 MB / 0.823 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; mkfifo Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; head -c 1048576 < Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe >> ../files/Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.sim & ./Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.275482446886599]