Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.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.001744/0.001744, allocations: 113.9 kB / 18.94 MB, free: 2.777 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.001749/0.001749, allocations: 187.3 kB / 22.23 MB, free: 5.188 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.471/1.471, allocations: 225.6 MB / 251 MB, free: 13.03 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.223/3.223, allocations: 0.4893 GB / 0.7884 GB, free: 33.21 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.Controls.OBC.UnitConversions.Validation.To_ton,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sub.y|sub1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton")
translateModel(Buildings.Controls.OBC.UnitConversions.Validation.To_ton,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sub.y|sub1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton") [Timeout 300]
"Notification: Performance of FrontEnd - loaded program: time 0.002015/0.002015, allocations: 58.81 kB / 1.145 GB, free: 30.7 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.419/0.421, allocations: 174.9 MB / 1.316 GB, free: 9.707 MB / 1.014 GB
Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_ton): time 0.002547/0.4235, allocations: 0.8335 MB / 1.317 GB, free: 8.875 MB / 1.014 GB
Notification: Performance of NFInst.instExpressions: time 0.0001529/0.4237, allocations: 43.8 kB / 1.317 GB, free: 8.832 MB / 1.014 GB
Notification: Performance of NFInst.updateImplicitVariability: time 6.745e-05/0.4238, allocations: 0 / 1.317 GB, free: 8.832 MB / 1.014 GB
Notification: Performance of NFTyping.typeComponents: time 4.615e-05/0.4238, allocations: 11.86 kB / 1.317 GB, free: 8.82 MB / 1.014 GB
Notification: Performance of NFTyping.typeBindings: time 7.916e-05/0.4239, allocations: 7.875 kB / 1.317 GB, free: 8.812 MB / 1.014 GB
Notification: Performance of NFTyping.typeClassSections: time 5.51e-05/0.4239, allocations: 19.98 kB / 1.317 GB, free: 8.793 MB / 1.014 GB
Notification: Performance of NFFlatten.flatten: time 0.0001201/0.4241, allocations: 63.83 kB / 1.317 GB, free: 8.73 MB / 1.014 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001391/0.4242, allocations: 31.97 kB / 1.317 GB, free: 8.699 MB / 1.014 GB
Notification: Performance of NFEvalConstants.evaluate: time 7.474e-05/0.4243, allocations: 35.86 kB / 1.317 GB, free: 8.664 MB / 1.014 GB
Notification: Performance of NFSimplifyModel.simplify: time 4.904e-05/0.4243, allocations: 27.8 kB / 1.317 GB, free: 8.637 MB / 1.014 GB
Notification: Performance of NFPackage.collectConstants: time 1.663e-05/0.4243, allocations: 4 kB / 1.317 GB, free: 8.633 MB / 1.014 GB
Notification: Performance of NFFlatten.collectFunctions: time 1.372e-05/0.4244, allocations: 8 kB / 1.317 GB, free: 8.625 MB / 1.014 GB
Notification: Performance of NFScalarize.scalarize: time 2.44e-05/0.4244, allocations: 15.92 kB / 1.317 GB, free: 8.609 MB / 1.014 GB
Notification: Performance of NFVerifyModel.verify: time 3.711e-05/0.4244, allocations: 31.81 kB / 1.317 GB, free: 8.578 MB / 1.014 GB
Notification: Performance of NFConvertDAE.convert: time 0.0001237/0.4245, allocations: 75.58 kB / 1.317 GB, free: 8.504 MB / 1.014 GB
Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.4245, allocations: 0 / 1.317 GB, free: 8.504 MB / 1.014 GB
Notification: Performance of FrontEnd: time 1.963e-06/0.4245, allocations: 3.938 kB / 1.317 GB, free: 8.5 MB / 1.014 GB
Notification: Performance of Transformations before backend: time 7.444e-06/0.4246, allocations: 3.984 kB / 1.317 GB, free: 8.496 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.0004513/0.425, allocations: 310 kB / 1.318 GB, free: 8.16 MB / 1.014 GB
Notification: Performance of prepare preOptimizeDAE: time 4.042e-05/0.425, allocations: 8.031 kB / 1.318 GB, free: 8.152 MB / 1.014 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 3.504e-05/0.4251, allocations: 8.891 kB / 1.318 GB, free: 8.145 MB / 1.014 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002368/0.4253, allocations: 134.4 kB / 1.318 GB, free: 7.988 MB / 1.014 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.918e-06/0.4253, allocations: 4.375 kB / 1.318 GB, free: 7.984 MB / 1.014 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 1.91e-05/0.4253, allocations: 8.375 kB / 1.318 GB, free: 7.977 MB / 1.014 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001654/0.4255, allocations: 97.75 kB / 1.318 GB, free: 7.871 MB / 1.014 GB
Notification: Performance of preOpt findStateOrder (simulation): time 9.307e-06/0.4255, allocations: 4.188 kB / 1.318 GB, free: 7.867 MB / 1.014 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.366e-05/0.4255, allocations: 7.938 kB / 1.318 GB, free: 7.859 MB / 1.014 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.681e-06/0.4255, allocations: 3.938 kB / 1.318 GB, free: 7.855 MB / 1.014 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 7.904e-05/0.4256, allocations: 35.98 kB / 1.318 GB, free: 7.82 MB / 1.014 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005605/0.4262, allocations: 403.8 kB / 1.318 GB, free: 7.379 MB / 1.014 GB
Notification: Performance of preOpt comSubExp (simulation): time 6.409e-05/0.4262, allocations: 41.22 kB / 1.318 GB, free: 7.32 MB / 1.014 GB
Notification: Performance of preOpt resolveLoops (simulation): time 4.036e-05/0.4263, allocations: 17.77 kB / 1.318 GB, free: 7.297 MB / 1.014 GB
Notification: Performance of preOpt evalFunc (simulation): time 1.148e-05/0.4263, allocations: 0 / 1.318 GB, free: 7.297 MB / 1.014 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.783e-05/0.4263, allocations: 42.58 kB / 1.318 GB, free: 7.246 MB / 1.014 GB
Notification: Performance of pre-optimization done (n=2): time 8.41e-07/0.4263, allocations: 4 kB / 1.318 GB, free: 7.242 MB / 1.014 GB
Notification: Performance of matching and sorting (n=2): time 0.0001895/0.4265, allocations: 57.53 kB / 1.318 GB, free: 7.18 MB / 1.014 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.427e-05/0.4266, allocations: 77.11 kB / 1.318 GB, free: 7.086 MB / 1.014 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001512/0.4267, allocations: 158.2 kB / 1.319 GB, free: 6.922 MB / 1.014 GB
Notification: Performance of collectPreVariables (initialization): time 1.489e-05/0.4267, allocations: 25.7 kB / 1.319 GB, free: 6.891 MB / 1.014 GB
Notification: Performance of collectInitialEqns (initialization): time 7.36e-05/0.4268, allocations: 108 kB / 1.319 GB, free: 6.781 MB / 1.014 GB
Notification: Performance of collectInitialBindings (initialization): time 8.205e-06/0.4268, allocations: 3.953 kB / 1.319 GB, free: 6.777 MB / 1.014 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 3.279e-05/0.4269, allocations: 21.7 kB / 1.319 GB, free: 6.75 MB / 1.014 GB
Notification: Performance of setup shared object (initialization): time 0.0001277/0.427, allocations: 319.1 kB / 1.319 GB, free: 6.43 MB / 1.014 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 1.665e-05/0.427, allocations: 8 kB / 1.319 GB, free: 6.422 MB / 1.014 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 2.67e-05/0.427, allocations: 21.7 kB / 1.319 GB, free: 6.395 MB / 1.014 GB
Notification: Performance of analyzeInitialSystem (initialization): time 4.253e-05/0.4271, allocations: 25.66 kB / 1.319 GB, free: 6.363 MB / 1.014 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.4271, allocations: 4 kB / 1.319 GB, free: 6.359 MB / 1.014 GB
Notification: Performance of matching and sorting (n=4) (initialization): time 8.957e-05/0.4272, allocations: 61.64 kB / 1.319 GB, free: 6.293 MB / 1.014 GB
Notification: Performance of prepare postOptimizeDAE: time 1.444e-05/0.4272, allocations: 12 kB / 1.319 GB, free: 6.281 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.64e-06/0.4272, allocations: 3.938 kB / 1.319 GB, free: 6.277 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.469e-05/0.4272, allocations: 0 / 1.319 GB, free: 6.277 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.955e-05/0.4273, allocations: 11.94 kB / 1.319 GB, free: 6.266 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/0.4273, allocations: 0 / 1.319 GB, free: 6.266 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.635e-05/0.4273, allocations: 4 kB / 1.319 GB, free: 6.262 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.349e-06/0.4273, allocations: 0 / 1.319 GB, free: 6.262 MB / 1.014 GB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 2
 * Number of states: 0 ()
 * Number of discrete variables: 0 ()
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (4):
 * Single equations (assignments): 4
 * 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 8.365e-05/0.4274, allocations: 114.4 kB / 1.319 GB, free: 6.141 MB / 1.014 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 4.445e-05/0.4274, allocations: 11.91 kB / 1.319 GB, free: 6.129 MB / 1.014 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.595e-05/0.4275, allocations: 23.73 kB / 1.319 GB, free: 6.102 MB / 1.014 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.634e-06/0.4275, allocations: 0 / 1.319 GB, free: 6.102 MB / 1.014 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.4275, allocations: 0 / 1.319 GB, free: 6.102 MB / 1.014 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.4275, allocations: 0 / 1.319 GB, free: 6.102 MB / 1.014 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003907/0.4279, allocations: 441.8 kB / 1.32 GB, free: 5.613 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-06/0.4279, allocations: 0 / 1.32 GB, free: 5.613 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.917e-05/0.4279, allocations: 4 kB / 1.32 GB, free: 5.609 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.4279, allocations: 0 / 1.32 GB, free: 5.609 MB / 1.014 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.595e-06/0.4279, allocations: 8.062 kB / 1.32 GB, free: 5.602 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.4279, allocations: 4 kB / 1.32 GB, free: 5.598 MB / 1.014 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.4279, allocations: 3.938 kB / 1.32 GB, free: 5.594 MB / 1.014 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 8.9e-05/0.428, allocations: 81.81 kB / 1.32 GB, free: 5.492 MB / 1.014 GB
Notification: Performance of postOpt removeConstants (simulation): time 2.942e-05/0.428, allocations: 11.94 kB / 1.32 GB, free: 5.48 MB / 1.014 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.24e-05/0.428, allocations: 0 / 1.32 GB, free: 5.48 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.078e-05/0.428, allocations: 8.031 kB / 1.32 GB, free: 5.473 MB / 1.014 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 1.94e-05/0.4281, allocations: 4 kB / 1.32 GB, free: 5.469 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.473e-06/0.4281, allocations: 0 / 1.32 GB, free: 5.469 MB / 1.014 GB
Notification: Performance of sorting global known variables: time 9.803e-05/0.4282, allocations: 121.3 kB / 1.32 GB, free: 5.352 MB / 1.014 GB
Notification: Performance of sort global known variables: time 8e-08/0.4282, allocations: 0 / 1.32 GB, free: 5.352 MB / 1.014 GB
Notification: Performance of remove unused functions: time 0.0001781/0.4283, allocations: 8 kB / 1.32 GB, free: 5.344 MB / 1.014 GB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 2
 * Number of states: 0 ()
 * Number of discrete variables: 0 ()
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (2):
 * Single equations (assignments): 2
 * 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 Backend phase and start with SimCode phase: time 0.0001127/0.4285, allocations: 92.8 kB / 1.32 GB, free: 5.246 MB / 1.014 GB
Notification: Performance of simCode: created initialization part: time 9.368e-05/0.4285, allocations: 27.92 kB / 1.32 GB, free: 5.219 MB / 1.014 GB
Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.4285, allocations: 0 / 1.32 GB, free: 5.219 MB / 1.014 GB
Notification: Performance of simCode: created simulation system equations: time 1.371e-05/0.4286, allocations: 8 kB / 1.32 GB, free: 5.211 MB / 1.014 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001511/0.4287, allocations: 9.906 kB / 1.32 GB, free: 5.203 MB / 1.014 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003452/0.4291, allocations: 162.6 kB / 1.32 GB, free: 5.008 MB / 1.014 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003768/0.4294, allocations: 0.7004 MB / 1.321 GB, free: 4.281 MB / 1.014 GB
Notification: Performance of simCode: alias equations: time 3.036e-05/0.4295, allocations: 8.375 kB / 1.321 GB, free: 4.273 MB / 1.014 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 2.624e-05/0.4295, allocations: 11.44 kB / 1.321 GB, free: 4.262 MB / 1.014 GB
Notification: Performance of SimCode: time 3e-07/0.4295, allocations: 0 / 1.321 GB, free: 4.262 MB / 1.014 GB
Notification: Performance of Templates: time 0.003046/0.4325, allocations: 496.5 kB / 1.321 GB, free: 3.777 MB / 1.014 GB
"
[Timeout remaining time 300]
make -j1 -f Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.makefile [Timeout 300]
(rm -f Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.sim & ./Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton  -abortSlowSimulation -alarm=800  -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe 2>&1) [Timeout 800]
diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_UnitConversions_Validation_To_ton.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.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: 9.165400634519756]