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.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.00114/0.00114, allocations: 80.48 kB / 19.93 MB, free: 4.629 MB / 18.57 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.001211/0.001211, allocations: 177.9 kB / 23.21 MB, free: 1.352 MB / 18.57 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 0.8812/0.8812, allocations: 177.1 MB / 203.5 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.63/1.63, allocations: 359 MB / 0.6044 GB, free: 11.08 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/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_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 1.673e-06/1.673e-06, allocations: 3.938 kB / 0.9517 GB, free: 2.957 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.835e-05/2.003e-05, allocations: 2.281 kB / 0.9517 GB, free: 2.953 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.001833/0.001853, allocations: 1.574 MB / 0.9533 GB, free: 1.363 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.0006257/0.002479, allocations: 0.4914 MB / 0.9538 GB, free: 0.8672 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.685e-05/0.002536, allocations: 0 / 0.9538 GB, free: 0.8672 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 3.001e-05/0.002566, allocations: 3.938 kB / 0.9538 GB, free: 0.8633 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 5.434e-05/0.00262, allocations: 7.875 kB / 0.9538 GB, free: 0.8555 MB / 0.9011 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002226/0.002843, allocations: 39.88 kB / 0.9538 GB, free: 0.8164 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 0.0001182/0.002961, allocations: 79.77 kB / 0.9539 GB, free: 0.7383 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 9.132e-05/0.003052, allocations: 15.92 kB / 0.9539 GB, free: 0.7227 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001311/0.003183, allocations: 59.77 kB / 0.954 GB, free: 0.6641 MB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 5.991e-05/0.003243, allocations: 23.91 kB / 0.954 GB, free: 0.6406 MB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 1.591e-05/0.003259, allocations: 4 kB / 0.954 GB, free: 0.6367 MB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 3.818e-05/0.003297, allocations: 11.98 kB / 0.954 GB, free: 0.625 MB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 1.773e-05/0.003315, allocations: 15.98 kB / 0.954 GB, free: 0.6094 MB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 3.45e-05/0.003349, allocations: 27.91 kB / 0.954 GB, free: 0.582 MB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.0001201/0.003469, allocations: 67.83 kB / 0.9541 GB, free: 0.5156 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 1.644e-06/0.003471, allocations: 0 / 0.9541 GB, free: 0.5156 MB / 0.9011 GB Notification: Performance of FrontEnd: time 9.42e-07/0.003472, allocations: 3.938 kB / 0.9541 GB, free: 0.5117 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 3.957e-06/0.003476, allocations: 4 kB / 0.9541 GB, free: 0.5078 MB / 0.9011 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.0004469/0.003923, allocations: 302.1 kB / 0.9544 GB, free: 188 kB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 3.433e-05/0.003957, allocations: 8.031 kB / 0.9544 GB, free: 180 kB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001037/0.004061, allocations: 20.88 kB / 0.9544 GB, free: 160 kB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001485/0.004209, allocations: 121.7 kB / 0.9545 GB, free: 12 kB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.028e-05/0.00423, allocations: 8.359 kB / 0.9546 GB, free: 4 kB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.413e-05/0.004264, allocations: 12.36 kB / 0.9546 GB, free: 15.99 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001318/0.004396, allocations: 78.16 kB / 0.9546 GB, free: 15.91 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.764e-06/0.004403, allocations: 8.188 kB / 0.9546 GB, free: 15.9 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.126e-05/0.004415, allocations: 384 / 0.9546 GB, free: 15.9 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.641e-06/0.00442, allocations: 3.938 kB / 0.9547 GB, free: 15.9 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.337e-05/0.004504, allocations: 43.97 kB / 0.9547 GB, free: 15.86 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000395/0.004899, allocations: 256.4 kB / 0.9549 GB, free: 15.57 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002105/0.005109, allocations: 78.53 kB / 0.955 GB, free: 15.49 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.07e-05/0.00516, allocations: 40.84 kB / 0.9551 GB, free: 15.45 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 1.709e-05/0.005177, allocations: 4 kB / 0.9551 GB, free: 15.44 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001571/0.005334, allocations: 119.2 kB / 0.9552 GB, free: 15.31 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=11): time 1.312e-06/0.005335, allocations: 0 / 0.9552 GB, free: 15.31 MB / 0.9167 GB Notification: Performance of matching and sorting (n=11): time 0.0002805/0.005616, allocations: 177.5 kB / 0.9553 GB, free: 15.13 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.842e-05/0.005654, allocations: 51.41 kB / 0.9554 GB, free: 15.07 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.153e-05/0.005726, allocations: 113.8 kB / 0.9555 GB, free: 14.95 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 1.845e-05/0.005744, allocations: 37.7 kB / 0.9555 GB, free: 14.91 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001799/0.005924, allocations: 88.36 kB / 0.9556 GB, free: 14.82 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 2.87e-05/0.005953, allocations: 27.75 kB / 0.9556 GB, free: 14.79 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.615e-05/0.005989, allocations: 29.7 kB / 0.9557 GB, free: 14.75 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 7.195e-05/0.006061, allocations: 322.8 kB / 0.956 GB, free: 14.43 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.04e-05/0.006111, allocations: 27.98 kB / 0.956 GB, free: 14.4 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.414e-05/0.006165, allocations: 50.52 kB / 0.9561 GB, free: 14.35 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.312e-05/0.006249, allocations: 65.69 kB / 0.9561 GB, free: 14.28 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.006251, allocations: 0 / 0.9561 GB, free: 14.28 MB / 0.9167 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001262/0.006377, allocations: 125.4 kB / 0.9562 GB, free: 14.15 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.158e-05/0.006388, allocations: 4 kB / 0.9562 GB, free: 14.14 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.006394, allocations: 4 kB / 0.9562 GB, free: 14.14 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.087e-05/0.006405, allocations: 0 / 0.9562 GB, free: 14.14 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.305e-05/0.006448, allocations: 11.98 kB / 0.9563 GB, free: 14.13 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.037e-06/0.006452, allocations: 0 / 0.9563 GB, free: 14.13 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.974e-05/0.006491, allocations: 15.95 kB / 0.9563 GB, free: 14.11 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.202e-06/0.006498, allocations: 0 / 0.9563 GB, free: 14.11 MB / 0.9167 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.141e-05/0.006569, allocations: 132.3 kB / 0.9564 GB, free: 13.98 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.999e-06/0.006579, allocations: 7.938 kB / 0.9564 GB, free: 13.97 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.232e-05/0.006601, allocations: 12.44 kB / 0.9564 GB, free: 13.95 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.786e-06/0.006604, allocations: 4 kB / 0.9564 GB, free: 13.95 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.006607, allocations: 0 / 0.9564 GB, free: 13.95 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.097e-06/0.006612, allocations: 3.984 kB / 0.9564 GB, free: 13.95 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.087e-05/0.006692, allocations: 137.3 kB / 0.9566 GB, free: 13.78 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.91e-07/0.006693, allocations: 0 / 0.9566 GB, free: 13.78 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.634e-05/0.00673, allocations: 11.98 kB / 0.9566 GB, free: 13.77 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.006732, allocations: 7.875 kB / 0.9566 GB, free: 13.76 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.345e-06/0.00674, allocations: 0 / 0.9566 GB, free: 13.76 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.01e-07/0.006741, allocations: 4 kB / 0.9566 GB, free: 13.76 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.006742, allocations: 0 / 0.9566 GB, free: 13.76 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002339/0.006976, allocations: 216.9 kB / 0.9568 GB, free: 13.53 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 7.935e-06/0.006984, allocations: 7.984 kB / 0.9568 GB, free: 13.52 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.639e-05/0.007, allocations: 7.938 kB / 0.9568 GB, free: 13.51 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.964e-05/0.00703, allocations: 8.359 kB / 0.9568 GB, free: 13.5 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.358e-05/0.007073, allocations: 15.97 kB / 0.9568 GB, free: 13.49 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.786e-06/0.007082, allocations: 8 kB / 0.9568 GB, free: 13.48 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 2.958e-05/0.007112, allocations: 99.14 kB / 0.9569 GB, free: 13.38 MB / 0.9167 GB Notification: Performance of sort global known variables: time 5e-08/0.007112, allocations: 4.062 kB / 0.9569 GB, free: 13.38 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0001328/0.007245, allocations: 20 kB / 0.9569 GB, free: 13.36 MB / 0.9167 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 7.525e-05/0.00732, allocations: 103.2 kB / 0.957 GB, free: 13.25 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0001507/0.00747, allocations: 84.55 kB / 0.9571 GB, free: 13.17 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.007472, allocations: 0 / 0.9571 GB, free: 13.17 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 7.06e-05/0.007543, allocations: 56.08 kB / 0.9572 GB, free: 13.11 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001382/0.007681, allocations: 13.88 kB / 0.9572 GB, free: 13.1 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000343/0.008024, allocations: 258.9 kB / 0.9574 GB, free: 12.81 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.114e-05/0.008065, allocations: 75.33 kB / 0.9575 GB, free: 12.72 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.075e-05/0.008096, allocations: 12.5 kB / 0.9575 GB, free: 12.71 MB / 0.9167 GB Notification: Performance of SimCode: time 4.71e-07/0.008096, allocations: 3.938 kB / 0.9575 GB, free: 12.7 MB / 0.9167 GB Notification: Performance of Templates: time 0.001779/0.009875, allocations: 1.191 MB / 0.9587 GB, free: 11.52 MB / 0.9167 GB " [Timeout remaining time 300] 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: 6.550567707978189]