Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.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.0007858/0.0007858, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001148/0.001934, allocations: 440 kB / 10.41 MB, free: 284 kB / 10.45 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.0007165/0.0007165, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009733/0.00169, allocations: 475.6 kB / 11.79 MB, free: 2.375 MB / 13.93 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 1.003/1.003, allocations: 177.2 MB / 189.7 MB, free: 5.23 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08884/1.092, allocations: 53.68 MB / 243.4 MB, free: 15.48 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo): time 2.378/2.378, allocations: 447.1 MB / 0.675 GB, free: 5.887 MB / 0.6511 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.2347/2.613, allocations: 146 MB / 0.8176 GB, free: 3.809 MB / 0.7917 GB " [Timeout remaining time 177] Using package Buildings with version 15.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-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.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|soc.Q_flow|soc.SOC",fileNamePrefix="Buildings_latest_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_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.983e-06/1.983e-06, allocations: 3.938 kB / 0.8189 GB, free: 2.461 MB / 0.7917 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.357e-05/1.555e-05, allocations: 2.312 kB / 0.8189 GB, free: 2.457 MB / 0.7917 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002652/0.002667, allocations: 1.675 MB / 0.8206 GB, free: 0.7656 MB / 0.7917 GB Notification: Performance of NFInst.instExpressions: time 0.0007516/0.003419, allocations: 0.5102 MB / 0.8211 GB, free: 256 kB / 0.7917 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.173e-05/0.00347, allocations: 0 / 0.8211 GB, free: 256 kB / 0.7917 GB Notification: Performance of NFTyping.typeComponents: time 2.393e-05/0.003494, allocations: 3.938 kB / 0.8211 GB, free: 252 kB / 0.7917 GB Notification: Performance of NFTyping.typeBindings: time 4.203e-05/0.003536, allocations: 3.938 kB / 0.8211 GB, free: 248 kB / 0.7917 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001502/0.003686, allocations: 43.81 kB / 0.8211 GB, free: 204 kB / 0.7917 GB Notification: Performance of NFFlatten.flatten: time 0.0001228/0.003809, allocations: 83.77 kB / 0.8212 GB, free: 120 kB / 0.7917 GB Notification: Performance of NFFlatten.resolveConnections: time 7.652e-05/0.003886, allocations: 4 kB / 0.8212 GB, free: 116 kB / 0.7917 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000161/0.004047, allocations: 63.81 kB / 0.8213 GB, free: 52 kB / 0.7917 GB Notification: Performance of NFSimplifyModel.simplify: time 7.869e-05/0.004125, allocations: 19.97 kB / 0.8213 GB, free: 32 kB / 0.7917 GB Notification: Performance of NFPackage.collectConstants: time 2.035e-05/0.004146, allocations: 7.938 kB / 0.8213 GB, free: 24 kB / 0.7917 GB Notification: Performance of NFFlatten.collectFunctions: time 6.178e-05/0.004208, allocations: 15.98 kB / 0.8213 GB, free: 8 kB / 0.7917 GB Notification: Performance of NFScalarize.scalarize: time 3.884e-05/0.004246, allocations: 12.05 kB / 0.8213 GB, free: 15.99 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 3.416e-05/0.004281, allocations: 15.94 kB / 0.8213 GB, free: 15.98 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0001316/0.004412, allocations: 47.8 kB / 0.8214 GB, free: 15.93 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 1.154e-05/0.004424, allocations: 0 / 0.8214 GB, free: 15.93 MB / 0.8073 GB Notification: Performance of FrontEnd: time 6.11e-07/0.004424, allocations: 4 kB / 0.8214 GB, free: 15.93 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 1.522e-05/0.00444, allocations: 0 / 0.8214 GB, free: 15.93 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005172/0.004957, allocations: 288.3 kB / 0.8217 GB, free: 15.62 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.467e-05/0.004991, allocations: 12.03 kB / 0.8217 GB, free: 15.61 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001668/0.005158, allocations: 98.03 kB / 0.8218 GB, free: 15.5 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001585/0.005317, allocations: 125.6 kB / 0.8219 GB, free: 15.35 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.098e-05/0.005338, allocations: 4.375 kB / 0.8219 GB, free: 15.35 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.631e-05/0.005364, allocations: 4.375 kB / 0.8219 GB, free: 15.34 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001312/0.005495, allocations: 82.89 kB / 0.822 GB, free: 15.25 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.385e-06/0.005504, allocations: 4.188 kB / 0.822 GB, free: 15.25 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.977e-06/0.005512, allocations: 384 / 0.822 GB, free: 15.25 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.907e-06/0.005521, allocations: 7.938 kB / 0.822 GB, free: 15.24 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.177e-05/0.005573, allocations: 23.92 kB / 0.822 GB, free: 15.22 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002957/0.005869, allocations: 180.2 kB / 0.8222 GB, free: 15.03 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001607/0.00603, allocations: 70.58 kB / 0.8223 GB, free: 14.95 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.897e-05/0.006059, allocations: 16.86 kB / 0.8223 GB, free: 14.93 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.198e-05/0.006071, allocations: 0 / 0.8223 GB, free: 14.93 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00015/0.00622, allocations: 99.47 kB / 0.8224 GB, free: 14.82 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=11): time 1.193e-06/0.006222, allocations: 0 / 0.8224 GB, free: 14.82 MB / 0.8073 GB Notification: Performance of matching and sorting (n=11): time 0.0001729/0.006395, allocations: 105.5 kB / 0.8225 GB, free: 14.71 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.658e-05/0.006431, allocations: 59.33 kB / 0.8225 GB, free: 14.64 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.399e-05/0.006495, allocations: 114.7 kB / 0.8226 GB, free: 14.52 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.601e-05/0.006511, allocations: 25.7 kB / 0.8227 GB, free: 14.48 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 4.548e-05/0.006557, allocations: 96.31 kB / 0.8227 GB, free: 14.38 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 3.268e-05/0.006589, allocations: 31.72 kB / 0.8228 GB, free: 14.35 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.649e-05/0.006636, allocations: 25.72 kB / 0.8228 GB, free: 14.32 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 8.993e-05/0.006726, allocations: 326.8 kB / 0.8231 GB, free: 13.99 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.367e-05/0.006749, allocations: 8 kB / 0.8231 GB, free: 13.98 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.791e-05/0.006787, allocations: 29.69 kB / 0.8231 GB, free: 13.95 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.807e-05/0.006855, allocations: 53.97 kB / 0.8232 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.063e-06/0.006857, allocations: 0 / 0.8232 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001036/0.006961, allocations: 73.61 kB / 0.8233 GB, free: 13.81 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.422e-05/0.006975, allocations: 7.938 kB / 0.8233 GB, free: 13.8 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.006982, allocations: 7.984 kB / 0.8233 GB, free: 13.8 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.23e-05/0.006995, allocations: 0 / 0.8233 GB, free: 13.8 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.949e-05/0.007064, allocations: 15.94 kB / 0.8233 GB, free: 13.78 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.51e-06/0.00707, allocations: 7.984 kB / 0.8233 GB, free: 13.77 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.381e-05/0.007113, allocations: 11.98 kB / 0.8233 GB, free: 13.76 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.335e-06/0.007122, allocations: 4 kB / 0.8233 GB, free: 13.76 MB / 0.8073 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 7.108e-05/0.007193, allocations: 117.8 kB / 0.8234 GB, free: 13.63 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.929e-05/0.007212, allocations: 11.98 kB / 0.8234 GB, free: 13.62 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.658e-05/0.007239, allocations: 16.38 kB / 0.8235 GB, free: 13.61 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.007241, allocations: 0 / 0.8235 GB, free: 13.61 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.383e-06/0.007242, allocations: 3.938 kB / 0.8235 GB, free: 13.6 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.007246, allocations: 0 / 0.8235 GB, free: 13.6 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.406e-05/0.00734, allocations: 85.88 kB / 0.8235 GB, free: 13.5 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.436e-06/0.007343, allocations: 7.984 kB / 0.8236 GB, free: 13.49 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.895e-05/0.007392, allocations: 8 kB / 0.8236 GB, free: 13.48 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.042e-05/0.007403, allocations: 7.953 kB / 0.8236 GB, free: 13.48 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.393e-06/0.007404, allocations: 0 / 0.8236 GB, free: 13.48 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.167e-05/0.007416, allocations: 7.922 kB / 0.8236 GB, free: 13.47 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.252e-06/0.007422, allocations: 4 kB / 0.8236 GB, free: 13.46 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.007423, allocations: 0 / 0.8236 GB, free: 13.46 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001777/0.007601, allocations: 137 kB / 0.8237 GB, free: 13.31 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.829e-05/0.007619, allocations: 7.938 kB / 0.8237 GB, free: 13.3 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.161e-05/0.007651, allocations: 0 / 0.8237 GB, free: 13.3 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.327e-05/0.007694, allocations: 23.94 kB / 0.8237 GB, free: 13.28 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.847e-06/0.007703, allocations: 7.984 kB / 0.8237 GB, free: 13.27 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 1.931e-05/0.007722, allocations: 16.86 kB / 0.8238 GB, free: 13.25 MB / 0.8073 GB Notification: Performance of sort global known variables: time 7e-08/0.007722, allocations: 0 / 0.8238 GB, free: 13.25 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001784/0.0079, allocations: 19.94 kB / 0.8238 GB, free: 13.23 MB / 0.8073 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 8.794e-05/0.007988, allocations: 85.16 kB / 0.8239 GB, free: 13.14 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001185/0.008107, allocations: 56.77 kB / 0.8239 GB, free: 13.09 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 5.421e-06/0.008112, allocations: 0 / 0.8239 GB, free: 13.09 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 7.116e-05/0.008183, allocations: 56.7 kB / 0.824 GB, free: 13.03 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001359/0.008319, allocations: 52.09 kB / 0.824 GB, free: 12.97 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001177/0.009496, allocations: 204.7 kB / 0.8242 GB, free: 12.74 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.691e-05/0.009533, allocations: 59.3 kB / 0.8243 GB, free: 12.66 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 4.51e-05/0.009578, allocations: 12.72 kB / 0.8243 GB, free: 12.65 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.526e-05/0.009654, allocations: 59.38 kB / 0.8243 GB, free: 12.59 MB / 0.8073 GB Notification: Performance of SimCode: time 5.21e-07/0.009654, allocations: 0 / 0.8243 GB, free: 12.59 MB / 0.8073 GB Notification: Performance of Templates: time 0.003377/0.01303, allocations: 1.258 MB / 0.8256 GB, free: 11.36 MB / 0.8073 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & ./Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge/Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.ref.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.140429756604135]