Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001615/0.001615, allocations: 105.8 kB / 18.84 MB, free: 3.043 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.001949/0.001949, allocations: 193.5 kB / 22.11 MB, free: 5.148 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.49/1.49, allocations: 225.6 MB / 250.8 MB, free: 13.07 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo): time 3.236/3.236, allocations: 495.8 MB / 0.783 GB, free: 33.55 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-maint.12.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_12_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_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge") [Timeout 300]
"Notification: Performance of FrontEnd - loaded program: time 0.002079/0.002079, allocations: 67.2 kB / 1.137 GB, free: 33.85 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3801/0.3821, allocations: 173.6 MB / 1.307 GB, free: 1.84 MB / 0.9981 GB
Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.003071/0.3852, allocations: 1.585 MB / 1.308 GB, free: 252 kB / 0.9981 GB
Notification: Performance of NFInst.instExpressions: time 0.0008378/0.3861, allocations: 450.8 kB / 1.309 GB, free: 15.8 MB / 1.014 GB
Notification: Performance of NFInst.updateImplicitVariability: time 4.988e-05/0.3861, allocations: 0 / 1.309 GB, free: 15.8 MB / 1.014 GB
Notification: Performance of NFTyping.typeComponents: time 3.679e-05/0.3861, allocations: 11.92 kB / 1.309 GB, free: 15.79 MB / 1.014 GB
Notification: Performance of NFTyping.typeBindings: time 7.35e-05/0.3862, allocations: 15.86 kB / 1.309 GB, free: 15.77 MB / 1.014 GB
Notification: Performance of NFTyping.typeClassSections: time 0.0002155/0.3864, allocations: 27.97 kB / 1.309 GB, free: 15.75 MB / 1.014 GB
Notification: Performance of NFFlatten.flatten: time 0.0001149/0.3865, allocations: 71.77 kB / 1.309 GB, free: 15.68 MB / 1.014 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001071/0.3867, allocations: 11.98 kB / 1.309 GB, free: 15.66 MB / 1.014 GB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001164/0.3868, allocations: 35.86 kB / 1.309 GB, free: 15.63 MB / 1.014 GB
Notification: Performance of NFSimplifyModel.simplify: time 9.609e-05/0.3869, allocations: 35.83 kB / 1.309 GB, free: 15.59 MB / 1.014 GB
Notification: Performance of NFPackage.collectConstants: time 2.39e-05/0.3869, allocations: 8 kB / 1.309 GB, free: 15.59 MB / 1.014 GB
Notification: Performance of NFFlatten.collectFunctions: time 1.586e-05/0.3869, allocations: 8 kB / 1.309 GB, free: 15.58 MB / 1.014 GB
Notification: Performance of NFScalarize.scalarize: time 3.193e-05/0.3869, allocations: 12 kB / 1.309 GB, free: 15.57 MB / 1.014 GB
Notification: Performance of NFVerifyModel.verify: time 6.008e-05/0.387, allocations: 31.86 kB / 1.309 GB, free: 15.54 MB / 1.014 GB
Notification: Performance of NFConvertDAE.convert: time 0.0001387/0.3871, allocations: 67.7 kB / 1.309 GB, free: 15.47 MB / 1.014 GB
Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.3871, allocations: 0 / 1.309 GB, free: 15.47 MB / 1.014 GB
Notification: Performance of FrontEnd: time 1.613e-06/0.3871, allocations: 0 / 1.309 GB, free: 15.47 MB / 1.014 GB
Notification: Performance of Transformations before backend: time 5.881e-06/0.3871, allocations: 0 / 1.309 GB, free: 15.47 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: 9
 * Number of variables: 9
Notification: Performance of Generate backend data structure: time 0.0006195/0.3878, allocations: 298.1 kB / 1.309 GB, free: 15.15 MB / 1.014 GB
Notification: Performance of prepare preOptimizeDAE: time 4.733e-05/0.3878, allocations: 16.03 kB / 1.309 GB, free: 15.13 MB / 1.014 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 4.276e-05/0.3879, allocations: 8.891 kB / 1.309 GB, free: 15.12 MB / 1.014 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001284/0.388, allocations: 118.4 kB / 1.309 GB, free: 14.98 MB / 1.014 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.511e-05/0.388, allocations: 384 / 1.309 GB, free: 14.98 MB / 1.014 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 3.772e-05/0.388, allocations: 16.36 kB / 1.309 GB, free: 14.97 MB / 1.014 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002089/0.3883, allocations: 81.95 kB / 1.31 GB, free: 14.88 MB / 1.014 GB
Notification: Performance of preOpt findStateOrder (simulation): time 9.448e-06/0.3883, allocations: 0 / 1.31 GB, free: 14.88 MB / 1.014 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.401e-05/0.3883, allocations: 0 / 1.31 GB, free: 14.88 MB / 1.014 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.955e-06/0.3883, allocations: 3.984 kB / 1.31 GB, free: 14.88 MB / 1.014 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001405/0.3884, allocations: 43.97 kB / 1.31 GB, free: 14.84 MB / 1.014 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006064/0.389, allocations: 291.8 kB / 1.31 GB, free: 14.51 MB / 1.014 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.0002774/0.3893, allocations: 86.52 kB / 1.31 GB, free: 14.41 MB / 1.014 GB
Notification: Performance of preOpt resolveLoops (simulation): time 9.522e-05/0.3894, allocations: 36.84 kB / 1.31 GB, free: 14.38 MB / 1.014 GB
Notification: Performance of preOpt evalFunc (simulation): time 1.365e-05/0.3894, allocations: 0 / 1.31 GB, free: 14.38 MB / 1.014 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003026/0.3897, allocations: 127.2 kB / 1.31 GB, free: 14.24 MB / 1.014 GB
Notification: Performance of pre-optimization done (n=11): time 1.333e-06/0.3897, allocations: 0 / 1.31 GB, free: 14.24 MB / 1.014 GB
Notification: Performance of matching and sorting (n=11): time 0.0004151/0.3901, allocations: 165.6 kB / 1.31 GB, free: 14.07 MB / 1.014 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 6.394e-05/0.3902, allocations: 55.41 kB / 1.31 GB, free: 14 MB / 1.014 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.314e-05/0.3903, allocations: 117.8 kB / 1.31 GB, free: 13.88 MB / 1.014 GB
Notification: Performance of collectPreVariables (initialization): time 2.141e-05/0.3903, allocations: 25.7 kB / 1.31 GB, free: 13.85 MB / 1.014 GB
Notification: Performance of collectInitialEqns (initialization): time 6.038e-05/0.3904, allocations: 88.38 kB / 1.311 GB, free: 13.76 MB / 1.014 GB
Notification: Performance of collectInitialBindings (initialization): time 4.005e-05/0.3904, allocations: 31.73 kB / 1.311 GB, free: 13.73 MB / 1.014 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 5.506e-05/0.3905, allocations: 29.7 kB / 1.311 GB, free: 13.69 MB / 1.014 GB
Notification: Performance of setup shared object (initialization): time 0.0001689/0.3906, allocations: 326.7 kB / 1.311 GB, free: 13.36 MB / 1.014 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 8.474e-05/0.3907, allocations: 31.92 kB / 1.311 GB, free: 13.33 MB / 1.014 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001024/0.3908, allocations: 59.38 kB / 1.311 GB, free: 13.27 MB / 1.014 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.000147/0.391, allocations: 66.08 kB / 1.311 GB, free: 13.2 MB / 1.014 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.391, allocations: 0 / 1.311 GB, free: 13.2 MB / 1.014 GB
Notification: Performance of matching and sorting (n=14) (initialization): time 0.000226/0.3912, allocations: 113.5 kB / 1.311 GB, free: 13.08 MB / 1.014 GB
Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/0.3912, allocations: 8 kB / 1.311 GB, free: 13.07 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.038e-06/0.3912, allocations: 0 / 1.311 GB, free: 13.07 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.513e-05/0.3912, allocations: 0 / 1.311 GB, free: 13.07 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.601e-05/0.3913, allocations: 12 kB / 1.311 GB, free: 13.06 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.3913, allocations: 4 kB / 1.311 GB, free: 13.06 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.268e-05/0.3914, allocations: 11.98 kB / 1.311 GB, free: 13.05 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.074e-05/0.3914, allocations: 7.938 kB / 1.311 GB, free: 13.04 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: 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.0001052/0.3915, allocations: 131.2 kB / 1.311 GB, free: 12.9 MB / 1.014 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 2.365e-05/0.3915, allocations: 15.94 kB / 1.311 GB, free: 12.89 MB / 1.014 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.193e-05/0.3916, allocations: 8.375 kB / 1.311 GB, free: 12.88 MB / 1.014 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.3916, allocations: 4 kB / 1.311 GB, free: 12.87 MB / 1.014 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.3916, allocations: 4 kB / 1.311 GB, free: 12.87 MB / 1.014 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.3916, allocations: 0 / 1.311 GB, free: 12.87 MB / 1.014 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001715/0.3918, allocations: 168.8 kB / 1.312 GB, free: 12.66 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.31e-07/0.3918, allocations: 0 / 1.312 GB, free: 12.66 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.947e-05/0.3918, allocations: 11.98 kB / 1.312 GB, free: 12.65 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.3918, allocations: 0 / 1.312 GB, free: 12.65 MB / 1.014 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.301e-05/0.3918, allocations: 4 kB / 1.312 GB, free: 12.64 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.3919, allocations: 0 / 1.312 GB, free: 12.64 MB / 1.014 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.3919, allocations: 3.984 kB / 1.312 GB, free: 12.64 MB / 1.014 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004139/0.3923, allocations: 220.8 kB / 1.312 GB, free: 12.41 MB / 1.014 GB
Notification: Performance of postOpt removeConstants (simulation): time 1.426e-05/0.3923, allocations: 11.98 kB / 1.312 GB, free: 12.39 MB / 1.014 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.068e-05/0.3924, allocations: 4 kB / 1.312 GB, free: 12.39 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.377e-05/0.3924, allocations: 7.984 kB / 1.312 GB, free: 12.38 MB / 1.014 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 7.846e-05/0.3925, allocations: 15.97 kB / 1.312 GB, free: 12.37 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.131e-05/0.3925, allocations: 4 kB / 1.312 GB, free: 12.36 MB / 1.014 GB
Notification: Performance of sorting global known variables: time 5.187e-05/0.3926, allocations: 87.27 kB / 1.312 GB, free: 12.28 MB / 1.014 GB
Notification: Performance of sort global known variables: time 7e-08/0.3926, allocations: 0 / 1.312 GB, free: 12.28 MB / 1.014 GB
Notification: Performance of remove unused functions: time 0.0002061/0.3928, allocations: 24.06 kB / 1.312 GB, free: 12.25 MB / 1.014 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.0001258/0.3929, allocations: 111.3 kB / 1.312 GB, free: 12.14 MB / 1.014 GB
Notification: Performance of simCode: created initialization part: time 0.0002448/0.3932, allocations: 87.83 kB / 1.312 GB, free: 12.05 MB / 1.014 GB
Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.3932, allocations: 0 / 1.312 GB, free: 12.05 MB / 1.014 GB
Notification: Performance of simCode: created simulation system equations: time 0.0001094/0.3933, allocations: 43.92 kB / 1.312 GB, free: 12.01 MB / 1.014 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002087/0.3935, allocations: 28.16 kB / 1.312 GB, free: 11.98 MB / 1.014 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005652/0.394, allocations: 269.7 kB / 1.312 GB, free: 11.7 MB / 1.014 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003264/0.3944, allocations: 0.6924 MB / 1.313 GB, free: 10.98 MB / 1.014 GB
Notification: Performance of simCode: alias equations: time 4.316e-05/0.3944, allocations: 4.766 kB / 1.313 GB, free: 10.97 MB / 1.014 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 4.159e-05/0.3945, allocations: 19.38 kB / 1.313 GB, free: 10.95 MB / 1.014 GB
Notification: Performance of SimCode: time 4.1e-07/0.3945, allocations: 0 / 1.313 GB, free: 10.95 MB / 1.014 GB
Notification: Performance of Templates: time 0.004252/0.3987, allocations: 1.135 MB / 1.314 GB, free: 9.82 MB / 1.014 GB
"
[Timeout remaining time 300]
make -j1 -f Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.makefile [Timeout 300]
(rm -f Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & ./Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge  -abortSlowSimulation -alarm=400  -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) [Timeout 400]
diffSimulationResults("Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.179024011828005]