Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001433/0.001433, allocations: 110 kB / 18.93 MB, free: 2.945 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001931/0.001931, allocations: 186.4 kB / 22.23 MB, free: 5.16 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.555/1.555, allocations: 225.6 MB / 251 MB, free: 13 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo): time 3.438/3.438, allocations: 495.7 MB / 0.7831 GB, free: 33.62 MB / 0.6231 GB
"
[Timeout remaining time 176]
Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cooCap.TConIn|cooCap.TEvaIn|cooCap.m_flow|cooCap.Q_flow.1.|cooCap.EIR.1.",fileNamePrefix="Buildings_latest_Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource")
translateModel(Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cooCap.TConIn|cooCap.TEvaIn|cooCap.m_flow|cooCap.Q_flow.1.|cooCap.EIR.1.",fileNamePrefix="Buildings_latest_Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource") [Timeout 300]
"Notification: Performance of FrontEnd - loaded program: time 0.002499/0.002499, allocations: 68.23 kB / 1.137 GB, free: 33.8 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.5091/0.5116, allocations: 173.6 MB / 1.307 GB, free: 1.887 MB / 0.9981 GB
Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource): time 0.005108/0.5167, allocations: 2.181 MB / 1.309 GB, free: 15.7 MB / 1.014 GB
Notification: Performance of NFInst.instExpressions: time 0.003868/0.5206, allocations: 1.873 MB / 1.311 GB, free: 13.81 MB / 1.014 GB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0002809/0.5209, allocations: 4 kB / 1.311 GB, free: 13.81 MB / 1.014 GB
Notification: Performance of NFTyping.typeComponents: time 0.001007/0.5219, allocations: 222.7 kB / 1.311 GB, free: 13.59 MB / 1.014 GB
Notification: Performance of NFTyping.typeBindings: time 0.0002701/0.5222, allocations: 63.36 kB / 1.311 GB, free: 13.53 MB / 1.014 GB
Notification: Performance of NFTyping.typeClassSections: time 0.001494/0.5237, allocations: 443.4 kB / 1.312 GB, free: 13.1 MB / 1.014 GB
Notification: Performance of NFFlatten.flatten: time 0.0006806/0.5243, allocations: 410.8 kB / 1.312 GB, free: 12.7 MB / 1.014 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001202/0.5245, allocations: 28.56 kB / 1.312 GB, free: 12.67 MB / 1.014 GB
Notification: Performance of NFEvalConstants.evaluate: time 0.0002163/0.5247, allocations: 155.6 kB / 1.312 GB, free: 12.52 MB / 1.014 GB
Notification: Performance of NFSimplifyModel.simplify: time 0.000271/0.5249, allocations: 163.4 kB / 1.312 GB, free: 12.36 MB / 1.014 GB
Notification: Performance of NFPackage.collectConstants: time 6.759e-05/0.525, allocations: 28 kB / 1.312 GB, free: 12.33 MB / 1.014 GB
Notification: Performance of NFFlatten.collectFunctions: time 0.0005684/0.5256, allocations: 283.5 kB / 1.313 GB, free: 12.05 MB / 1.014 GB
Notification: Performance of NFScalarize.scalarize: time 0.0001848/0.5258, allocations: 115.7 kB / 1.313 GB, free: 11.94 MB / 1.014 GB
Notification: Performance of NFVerifyModel.verify: time 0.0002093/0.526, allocations: 167.2 kB / 1.313 GB, free: 11.77 MB / 1.014 GB
Notification: Performance of NFConvertDAE.convert: time 0.0009142/0.5269, allocations: 0.5917 MB / 1.313 GB, free: 11.18 MB / 1.014 GB
Notification: Performance of FrontEnd - DAE generated: time 7.645e-06/0.5269, allocations: 0 / 1.313 GB, free: 11.18 MB / 1.014 GB
Notification: Performance of FrontEnd: time 1.943e-06/0.5269, allocations: 0 / 1.313 GB, free: 11.18 MB / 1.014 GB
Notification: Performance of Transformations before backend: time 8.736e-06/0.5269, allocations: 0 / 1.313 GB, free: 11.18 MB / 1.014 GB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 18
 * Number of variables: 18
Notification: Performance of Generate backend data structure: time 0.001576/0.5285, allocations: 0.6499 MB / 1.314 GB, free: 10.49 MB / 1.014 GB
Notification: Performance of prepare preOptimizeDAE: time 5.518e-05/0.5285, allocations: 8.031 kB / 1.314 GB, free: 10.48 MB / 1.014 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001838/0.5304, allocations: 168.6 kB / 1.314 GB, free: 10.32 MB / 1.014 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005986/0.531, allocations: 312.7 kB / 1.315 GB, free: 9.992 MB / 1.014 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001898/0.5312, allocations: 71.95 kB / 1.315 GB, free: 9.91 MB / 1.014 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 4.997e-05/0.5312, allocations: 12.38 kB / 1.315 GB, free: 9.898 MB / 1.014 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.001117/0.5323, allocations: 441.4 kB / 1.315 GB, free: 9.461 MB / 1.014 GB
Notification: Performance of preOpt findStateOrder (simulation): time 1.37e-05/0.5323, allocations: 0 / 1.315 GB, free: 9.461 MB / 1.014 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.988e-05/0.5324, allocations: 4 kB / 1.315 GB, free: 9.457 MB / 1.014 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.017e-05/0.5324, allocations: 4 kB / 1.315 GB, free: 9.453 MB / 1.014 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001832/0.5342, allocations: 0.5815 MB / 1.316 GB, free: 8.871 MB / 1.014 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002124/0.5363, allocations: 1.014 MB / 1.317 GB, free: 7.812 MB / 1.014 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.005159/0.5415, allocations: 0.8455 MB / 1.317 GB, free: 6.957 MB / 1.014 GB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0008319/0.5423, allocations: 304.7 kB / 1.318 GB, free: 6.656 MB / 1.014 GB
Notification: Performance of preOpt evalFunc (simulation): time 2.696e-05/0.5424, allocations: 3.938 kB / 1.318 GB, free: 6.652 MB / 1.014 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001161/0.5435, allocations: 439 kB / 1.318 GB, free: 6.211 MB / 1.014 GB
Notification: Performance of pre-optimization done (n=16): time 2.635e-06/0.5435, allocations: 0 / 1.318 GB, free: 6.211 MB / 1.014 GB
Notification: Performance of matching and sorting (n=16): time 0.002767/0.5463, allocations: 0.925 MB / 1.319 GB, free: 5.281 MB / 1.014 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 6.475e-05/0.5464, allocations: 59.34 kB / 1.319 GB, free: 5.211 MB / 1.014 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005853/0.5469, allocations: 433.6 kB / 1.32 GB, free: 4.777 MB / 1.014 GB
Notification: Performance of collectPreVariables (initialization): time 5.761e-05/0.547, allocations: 33.7 kB / 1.32 GB, free: 4.738 MB / 1.014 GB
Notification: Performance of collectInitialEqns (initialization): time 0.0001765/0.5472, allocations: 168.1 kB / 1.32 GB, free: 4.57 MB / 1.014 GB
Notification: Performance of collectInitialBindings (initialization): time 7.99e-05/0.5473, allocations: 51.59 kB / 1.32 GB, free: 4.52 MB / 1.014 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001452/0.5474, allocations: 49.67 kB / 1.32 GB, free: 4.465 MB / 1.014 GB
Notification: Performance of setup shared object (initialization): time 0.0002109/0.5476, allocations: 354.7 kB / 1.32 GB, free: 4.109 MB / 1.014 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009646/0.5486, allocations: 380.6 kB / 1.321 GB, free: 3.734 MB / 1.014 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009025/0.5495, allocations: 373.9 kB / 1.321 GB, free: 3.371 MB / 1.014 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.00167/0.5512, allocations: 0.5981 MB / 1.321 GB, free: 2.766 MB / 1.014 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.5512, allocations: 0 / 1.321 GB, free: 2.766 MB / 1.014 GB
Notification: Performance of matching and sorting (n=18) (initialization): time 0.002266/0.5534, allocations: 0.9088 MB / 1.322 GB, free: 1.844 MB / 1.014 GB
Notification: Performance of prepare postOptimizeDAE: time 7.379e-05/0.5535, allocations: 41.69 kB / 1.322 GB, free: 1.797 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.989e-06/0.5535, allocations: 0 / 1.322 GB, free: 1.797 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (initialization): time 2.316e-05/0.5535, allocations: 0 / 1.322 GB, free: 1.797 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005053/0.554, allocations: 67.92 kB / 1.322 GB, free: 1.73 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.024e-05/0.554, allocations: 0 / 1.322 GB, free: 1.73 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004385/0.5545, allocations: 31.95 kB / 1.323 GB, free: 1.699 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.196e-05/0.5545, allocations: 19.92 kB / 1.323 GB, free: 1.68 MB / 1.014 GB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 1
 * Number of states: 0 ()
 * Number of discrete variables: 7 (cooCap.checkBoundsTCon[1],$PRE.cooCap.checkBoundsTCon[1],cooCap.checkBoundsTEva[1],$PRE.cooCap.checkBoundsTEva[1],cooCap.stage,$whenCondition1,$whenCondition2)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (17):
 * Single equations (assignments): 16
 * 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.0003589/0.5549, allocations: 197.7 kB / 1.323 GB, free: 1.477 MB / 1.014 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 9.086e-05/0.555, allocations: 35.77 kB / 1.323 GB, free: 1.441 MB / 1.014 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.084e-05/0.5551, allocations: 43.39 kB / 1.323 GB, free: 1.398 MB / 1.014 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.5551, allocations: 4 kB / 1.323 GB, free: 1.395 MB / 1.014 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 6.762e-06/0.5551, allocations: 0 / 1.323 GB, free: 1.395 MB / 1.014 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.5551, allocations: 4 kB / 1.323 GB, free: 1.391 MB / 1.014 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006991/0.5558, allocations: 0.5196 MB / 1.323 GB, free: 0.8281 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.5558, allocations: 0 / 1.323 GB, free: 0.8281 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004763/0.5563, allocations: 67.91 kB / 1.323 GB, free: 0.7617 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (simulation): time 7.314e-06/0.5563, allocations: 4 kB / 1.323 GB, free: 0.7578 MB / 1.014 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.986e-05/0.5563, allocations: 3.984 kB / 1.323 GB, free: 0.7539 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.177e-06/0.5563, allocations: 7.938 kB / 1.323 GB, free: 0.7461 MB / 1.014 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.5563, allocations: 0 / 1.323 GB, free: 0.7461 MB / 1.014 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001782/0.5581, allocations: 0.6605 MB / 1.324 GB, free: 68 kB / 1.014 GB
Notification: Performance of postOpt removeConstants (simulation): time 0.0002466/0.5584, allocations: 83.69 kB / 1.324 GB, free: 15.98 MB / 1.029 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.205e-05/0.5584, allocations: 11.98 kB / 1.324 GB, free: 15.97 MB / 1.029 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000489/0.5589, allocations: 51.94 kB / 1.324 GB, free: 15.92 MB / 1.029 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 9.269e-05/0.559, allocations: 15.97 kB / 1.324 GB, free: 15.91 MB / 1.029 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.457e-05/0.5591, allocations: 11.98 kB / 1.324 GB, free: 15.89 MB / 1.029 GB
Notification: Performance of sorting global known variables: time 0.0004156/0.5595, allocations: 323 kB / 1.325 GB, free: 15.59 MB / 1.029 GB
Notification: Performance of sort global known variables: time 1.1e-07/0.5595, allocations: 4 kB / 1.325 GB, free: 15.58 MB / 1.029 GB
Notification: Performance of remove unused functions: time 0.0004237/0.5599, allocations: 79.94 kB / 1.325 GB, free: 15.5 MB / 1.029 GB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 1
 * Number of states: 0 ()
 * Number of discrete variables: 5 ($whenCondition2,$whenCondition1,cooCap.stage,cooCap.checkBoundsTEva[1],cooCap.checkBoundsTCon[1])
 * Number of discrete states: 3 (cooCap.stage,cooCap.checkBoundsTEva[cooCap.stage],cooCap.checkBoundsTCon[cooCap.stage])
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (16):
 * Single equations (assignments): 14
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 2
 * 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.0003746/0.5603, allocations: 128 kB / 1.325 GB, free: 15.37 MB / 1.029 GB
Notification: Performance of simCode: created initialization part: time 0.002071/0.5623, allocations: 0.7489 MB / 1.325 GB, free: 14.61 MB / 1.029 GB
Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.5623, allocations: 0 / 1.325 GB, free: 14.61 MB / 1.029 GB
Notification: Performance of simCode: created simulation system equations: time 0.0009093/0.5632, allocations: 321.8 kB / 1.326 GB, free: 14.29 MB / 1.029 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004634/0.5637, allocations: 83.59 kB / 1.326 GB, free: 14.21 MB / 1.029 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002003/0.5657, allocations: 0.8355 MB / 1.327 GB, free: 13.35 MB / 1.029 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006064/0.5663, allocations: 0.8143 MB / 1.327 GB, free: 12.51 MB / 1.029 GB
Notification: Performance of simCode: alias equations: time 0.0004097/0.5667, allocations: 98.25 kB / 1.328 GB, free: 12.41 MB / 1.029 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000148/0.5669, allocations: 31.42 kB / 1.328 GB, free: 12.38 MB / 1.029 GB
Notification: Performance of SimCode: time 1.052e-06/0.5669, allocations: 3.938 kB / 1.328 GB, free: 12.38 MB / 1.029 GB
Notification: Performance of Templates: time 0.01502/0.5819, allocations: 7.284 MB / 1.335 GB, free: 5.172 MB / 1.029 GB
"
[Timeout remaining time 299]
make -j1 -f Buildings_latest_Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource.makefile [Timeout 300]
(rm -f Buildings_latest_Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource.pipe ; mkfifo Buildings_latest_Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource.pipe >> ../files/Buildings_latest_Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource.sim & ./Buildings_latest_Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource  -abortSlowSimulation -alarm=800  -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource.pipe 2>&1) [Timeout 800]
diffSimulationResults("Buildings_latest_Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_DXSystems_BaseClasses_Examples_CapacityAirSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300]
""
[Timeout remaining time 300]
Reference file matches
[Calling sys.exit(0), Time elapsed: 10.387255781330168]