Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.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.001978/0.001978, 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.002795/0.002795, allocations: 192 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.551/1.551, 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 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.797/2.797, allocations: 476.7 MB / 0.7646 GB, free: 9.887 MB / 0.6231 GB
"
[Timeout remaining time 176]
Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|soc.Q_flow|soc.SOC",fileNamePrefix="Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge")
translateModel(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|soc.Q_flow|soc.SOC",fileNamePrefix="Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge") [Timeout 300]
"Notification: Performance of FrontEnd - loaded program: time 0.002865/0.002865, allocations: 67.89 kB / 1.11 GB, free: 6.336 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.8925/0.8954, allocations: 168.8 MB / 1.274 GB, free: 4.203 MB / 0.9669 GB
Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.003153/0.8985, allocations: 1.584 MB / 1.276 GB, free: 2.609 MB / 0.9669 GB
Notification: Performance of NFInst.instExpressions: time 0.0009441/0.8995, allocations: 452.6 kB / 1.276 GB, free: 2.164 MB / 0.9669 GB
Notification: Performance of NFInst.updateImplicitVariability: time 6.466e-05/0.8995, allocations: 0 / 1.276 GB, free: 2.164 MB / 0.9669 GB
Notification: Performance of NFTyping.typeComponents: time 4.243e-05/0.8996, allocations: 3.938 kB / 1.276 GB, free: 2.16 MB / 0.9669 GB
Notification: Performance of NFTyping.typeBindings: time 8.782e-05/0.8997, allocations: 19.86 kB / 1.276 GB, free: 2.141 MB / 0.9669 GB
Notification: Performance of NFTyping.typeClassSections: time 0.0002635/0.8999, allocations: 31.91 kB / 1.276 GB, free: 2.109 MB / 0.9669 GB
Notification: Performance of NFFlatten.flatten: time 0.0001383/0.9001, allocations: 75.77 kB / 1.276 GB, free: 2.035 MB / 0.9669 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001381/0.9002, allocations: 4 kB / 1.276 GB, free: 2.031 MB / 0.9669 GB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001242/0.9003, allocations: 35.91 kB / 1.276 GB, free: 1.996 MB / 0.9669 GB
Notification: Performance of NFSimplifyModel.simplify: time 9.326e-05/0.9004, allocations: 31.91 kB / 1.277 GB, free: 1.965 MB / 0.9669 GB
Notification: Performance of NFPackage.collectConstants: time 2.845e-05/0.9005, allocations: 4 kB / 1.277 GB, free: 1.961 MB / 0.9669 GB
Notification: Performance of NFFlatten.collectFunctions: time 2.038e-05/0.9005, allocations: 8 kB / 1.277 GB, free: 1.953 MB / 0.9669 GB
Notification: Performance of NFScalarize.scalarize: time 4.126e-05/0.9005, allocations: 19.92 kB / 1.277 GB, free: 1.934 MB / 0.9669 GB
Notification: Performance of NFVerifyModel.verify: time 6.9e-05/0.9006, allocations: 35.84 kB / 1.277 GB, free: 1.898 MB / 0.9669 GB
Notification: Performance of NFConvertDAE.convert: time 0.0001535/0.9007, allocations: 59.5 kB / 1.277 GB, free: 1.844 MB / 0.9669 GB
Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.9008, allocations: 0 / 1.277 GB, free: 1.844 MB / 0.9669 GB
Notification: Performance of FrontEnd: time 1.613e-06/0.9008, allocations: 0 / 1.277 GB, free: 1.844 MB / 0.9669 GB
Notification: Performance of Transformations before backend: time 9.358e-06/0.9008, allocations: 4 kB / 1.277 GB, free: 1.84 MB / 0.9669 GB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 9
 * Number of variables: 9
Notification: Performance of Generate backend data structure: time 0.0007854/0.9015, allocations: 296.8 kB / 1.277 GB, free: 1.523 MB / 0.9669 GB
Notification: Performance of prepare preOptimizeDAE: time 4.796e-05/0.9016, allocations: 8.031 kB / 1.277 GB, free: 1.516 MB / 0.9669 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 5.345e-05/0.9017, allocations: 16.88 kB / 1.277 GB, free: 1.5 MB / 0.9669 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.000131/0.9018, allocations: 114.5 kB / 1.277 GB, free: 1.363 MB / 0.9669 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.925e-05/0.9018, allocations: 12.38 kB / 1.277 GB, free: 1.352 MB / 0.9669 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 3.607e-05/0.9018, allocations: 12.31 kB / 1.277 GB, free: 1.34 MB / 0.9669 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002297/0.9021, allocations: 85.94 kB / 1.277 GB, free: 1.25 MB / 0.9669 GB
Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/0.9021, allocations: 4 kB / 1.277 GB, free: 1.246 MB / 0.9669 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.543e-05/0.9021, allocations: 7.875 kB / 1.277 GB, free: 1.238 MB / 0.9669 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-06/0.9021, allocations: 0 / 1.277 GB, free: 1.238 MB / 0.9669 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001667/0.9023, allocations: 43.97 kB / 1.277 GB, free: 1.195 MB / 0.9669 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006346/0.9029, allocations: 287.8 kB / 1.277 GB, free: 0.8711 MB / 0.9669 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.0002964/0.9032, allocations: 86.58 kB / 1.278 GB, free: 0.7773 MB / 0.9669 GB
Notification: Performance of preOpt resolveLoops (simulation): time 9.546e-05/0.9033, allocations: 32.84 kB / 1.278 GB, free: 0.7422 MB / 0.9669 GB
Notification: Performance of preOpt evalFunc (simulation): time 1.518e-05/0.9033, allocations: 0 / 1.278 GB, free: 0.7422 MB / 0.9669 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003112/0.9036, allocations: 115.3 kB / 1.278 GB, free: 0.6172 MB / 0.9669 GB
Notification: Performance of pre-optimization done (n=11): time 1.313e-06/0.9036, allocations: 0 / 1.278 GB, free: 0.6172 MB / 0.9669 GB
Notification: Performance of matching and sorting (n=11): time 0.0004473/0.9041, allocations: 181.4 kB / 1.278 GB, free: 444 kB / 0.9669 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 6.111e-05/0.9041, allocations: 55.39 kB / 1.278 GB, free: 376 kB / 0.9669 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001036/0.9042, allocations: 113.8 kB / 1.278 GB, free: 252 kB / 0.9669 GB
Notification: Performance of collectPreVariables (initialization): time 2.473e-05/0.9043, allocations: 29.7 kB / 1.278 GB, free: 216 kB / 0.9669 GB
Notification: Performance of collectInitialEqns (initialization): time 7.629e-05/0.9043, allocations: 88.38 kB / 1.278 GB, free: 124 kB / 0.9669 GB
Notification: Performance of collectInitialBindings (initialization): time 4.411e-05/0.9044, allocations: 31.94 kB / 1.278 GB, free: 92 kB / 0.9669 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 5.144e-05/0.9044, allocations: 25.72 kB / 1.278 GB, free: 60 kB / 0.9669 GB
Notification: Performance of setup shared object (initialization): time 0.0001932/0.9046, allocations: 322.8 kB / 1.279 GB, free: 15.73 MB / 0.9825 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 8.602e-05/0.9047, allocations: 31.98 kB / 1.279 GB, free: 15.7 MB / 0.9825 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.000108/0.9048, allocations: 45.7 kB / 1.279 GB, free: 15.65 MB / 0.9825 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0001538/0.905, allocations: 69.62 kB / 1.279 GB, free: 15.58 MB / 0.9825 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.905, allocations: 0 / 1.279 GB, free: 15.58 MB / 0.9825 GB
Notification: Performance of matching and sorting (n=14) (initialization): time 0.000244/0.9052, allocations: 117.5 kB / 1.279 GB, free: 15.46 MB / 0.9825 GB
Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/0.9052, allocations: 8 kB / 1.279 GB, free: 15.45 MB / 0.9825 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.02e-06/0.9052, allocations: 0 / 1.279 GB, free: 15.45 MB / 0.9825 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.685e-05/0.9053, allocations: 0 / 1.279 GB, free: 15.45 MB / 0.9825 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.531e-05/0.9054, allocations: 15.92 kB / 1.279 GB, free: 15.43 MB / 0.9825 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.087e-05/0.9054, allocations: 4 kB / 1.279 GB, free: 15.43 MB / 0.9825 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.784e-05/0.9054, allocations: 15.92 kB / 1.279 GB, free: 15.41 MB / 0.9825 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.057e-05/0.9055, allocations: 4 kB / 1.279 GB, free: 15.41 MB / 0.9825 GB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 2
 * Number of states: 0 ()
 * Number of discrete variables: 9 ($whenCondition4,$whenCondition3,soc.suspend,soc.discharged,$PRE.soc.discharged,soc.charged,$PRE.soc.charged,$whenCondition2,$whenCondition1)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (14):
 * Single equations (assignments): 14
 * 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.00012/0.9056, allocations: 121.8 kB / 1.279 GB, free: 15.28 MB / 0.9825 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 2.061e-05/0.9056, allocations: 7.953 kB / 1.279 GB, free: 15.27 MB / 0.9825 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.556e-05/0.9056, allocations: 8.375 kB / 1.279 GB, free: 15.26 MB / 0.9825 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.692e-06/0.9056, allocations: 7.984 kB / 1.279 GB, free: 15.25 MB / 0.9825 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.9056, allocations: 3.938 kB / 1.279 GB, free: 15.25 MB / 0.9825 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.9057, allocations: 4 kB / 1.279 GB, free: 15.25 MB / 0.9825 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002044/0.9059, allocations: 164.6 kB / 1.279 GB, free: 15.04 MB / 0.9825 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.9059, allocations: 0 / 1.279 GB, free: 15.04 MB / 0.9825 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.481e-05/0.906, allocations: 15.92 kB / 1.279 GB, free: 15.03 MB / 0.9825 GB
Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.906, allocations: 0 / 1.279 GB, free: 15.03 MB / 0.9825 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.105e-05/0.906, allocations: 8 kB / 1.279 GB, free: 15.02 MB / 0.9825 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.487e-06/0.906, allocations: 4 kB / 1.279 GB, free: 15.02 MB / 0.9825 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.906, allocations: 0 / 1.279 GB, free: 15.02 MB / 0.9825 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004281/0.9064, allocations: 220.9 kB / 1.279 GB, free: 14.78 MB / 0.9825 GB
Notification: Performance of postOpt removeConstants (simulation): time 2.279e-05/0.9064, allocations: 7.984 kB / 1.279 GB, free: 14.77 MB / 0.9825 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.581e-05/0.9065, allocations: 4 kB / 1.279 GB, free: 14.77 MB / 0.9825 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.61e-05/0.9065, allocations: 7.984 kB / 1.279 GB, free: 14.76 MB / 0.9825 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 6.461e-05/0.9066, allocations: 15.97 kB / 1.279 GB, free: 14.75 MB / 0.9825 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.387e-05/0.9066, allocations: 8 kB / 1.279 GB, free: 14.74 MB / 0.9825 GB
Notification: Performance of sorting global known variables: time 5.952e-05/0.9067, allocations: 91.5 kB / 1.279 GB, free: 14.65 MB / 0.9825 GB
Notification: Performance of sort global known variables: time 8e-08/0.9067, allocations: 0 / 1.279 GB, free: 14.65 MB / 0.9825 GB
Notification: Performance of remove unused functions: time 0.0002004/0.9069, allocations: 20 kB / 1.28 GB, free: 14.63 MB / 0.9825 GB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 1
 * Number of states: 1 (soc.SOC)
 * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,soc.charged,soc.discharged,soc.suspend)
 * Number of discrete states: 2 (soc.discharged,soc.charged)
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (11):
 * Single equations (assignments): 9
 * 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.0001454/0.907, allocations: 110.7 kB / 1.28 GB, free: 14.52 MB / 0.9825 GB
Notification: Performance of simCode: created initialization part: time 0.0002701/0.9073, allocations: 92.42 kB / 1.28 GB, free: 14.43 MB / 0.9825 GB
Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.9073, allocations: 0 / 1.28 GB, free: 14.43 MB / 0.9825 GB
Notification: Performance of simCode: created simulation system equations: time 0.0001186/0.9074, allocations: 47.95 kB / 1.28 GB, free: 14.38 MB / 0.9825 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002193/0.9076, allocations: 17.86 kB / 1.28 GB, free: 14.36 MB / 0.9825 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006245/0.9083, allocations: 262.2 kB / 1.28 GB, free: 14.08 MB / 0.9825 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003976/0.9086, allocations: 0.6885 MB / 1.281 GB, free: 13.37 MB / 0.9825 GB
Notification: Performance of simCode: alias equations: time 5.455e-05/0.9087, allocations: 12.66 kB / 1.281 GB, free: 13.36 MB / 0.9825 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 5.519e-05/0.9088, allocations: 15.44 kB / 1.281 GB, free: 13.34 MB / 0.9825 GB
Notification: Performance of SimCode: time 3.11e-07/0.9088, allocations: 0 / 1.281 GB, free: 13.34 MB / 0.9825 GB
Notification: Performance of Templates: time 0.004404/0.9132, allocations: 1.133 MB / 1.282 GB, free: 12.21 MB / 0.9825 GB
"
[Timeout remaining time 299]
make -j1 -f Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.makefile [Timeout 300]
(rm -f Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & ./Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge  -abortSlowSimulation -alarm=400  -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) [Timeout 400]
diffSimulationResults("Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.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.226790900342166]