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.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.001609/0.001609, allocations: 111.2 kB / 17.13 MB, free: 6.07 MB / 14.72 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.001779/0.001779, allocations: 200.4 kB / 20.09 MB, free: 3.125 MB / 14.72 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.471/1.471, allocations: 230.6 MB / 253.5 MB, free: 15.06 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 2.825/2.825, allocations: 0.49 GB / 0.7923 GB, free: 1.281 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_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: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002014/0.002014, allocations: 67.89 kB / 1.15 GB, free: 14.86 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8725/0.8745, allocations: 176.1 MB / 1.322 GB, free: 25.05 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.00247/0.877, allocations: 1.595 MB / 1.324 GB, free: 23.94 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0007112/0.8777, allocations: 0.5109 MB / 1.324 GB, free: 23.58 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.731e-05/0.8778, allocations: 0 / 1.324 GB, free: 23.58 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 2.848e-05/0.8778, allocations: 3.938 kB / 1.324 GB, free: 23.57 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 6.01e-05/0.8779, allocations: 18.06 kB / 1.324 GB, free: 23.56 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002146/0.8781, allocations: 36.02 kB / 1.324 GB, free: 23.54 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001197/0.8782, allocations: 77.61 kB / 1.324 GB, free: 23.51 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 8.268e-05/0.8783, allocations: 10.94 kB / 1.324 GB, free: 23.5 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001152/0.8784, allocations: 35.98 kB / 1.324 GB, free: 23.49 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 6.516e-05/0.8785, allocations: 35.88 kB / 1.324 GB, free: 23.47 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.599e-05/0.8785, allocations: 6.062 kB / 1.324 GB, free: 23.47 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 4.167e-05/0.8785, allocations: 12.34 kB / 1.324 GB, free: 23.46 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 1.735e-05/0.8785, allocations: 13.97 kB / 1.324 GB, free: 23.46 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 4.037e-05/0.8786, allocations: 26.61 kB / 1.324 GB, free: 23.44 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001245/0.8787, allocations: 77.53 kB / 1.324 GB, free: 23.41 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.8787, allocations: 0 / 1.324 GB, free: 23.41 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.192e-06/0.8787, allocations: 0 / 1.324 GB, free: 23.41 MB / 1.061 GB Notification: Performance of Transformations before backend: time 9.328e-06/0.8787, allocations: 4 kB / 1.324 GB, free: 23.41 MB / 1.061 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.0004772/0.8792, allocations: 378.6 kB / 1.325 GB, free: 23.04 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.182e-05/0.8792, allocations: 12.23 kB / 1.325 GB, free: 23.03 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001398/0.8794, allocations: 19.19 kB / 1.325 GB, free: 23.03 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001592/0.8795, allocations: 196.1 kB / 1.325 GB, free: 22.81 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.156e-05/0.8795, allocations: 7.375 kB / 1.325 GB, free: 22.8 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.577e-05/0.8796, allocations: 5.875 kB / 1.325 GB, free: 22.8 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001629/0.8797, allocations: 92.11 kB / 1.325 GB, free: 22.75 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.246e-06/0.8797, allocations: 0 / 1.325 GB, free: 22.75 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.493e-05/0.8798, allocations: 10.75 kB / 1.325 GB, free: 22.74 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-06/0.8798, allocations: 0 / 1.325 GB, free: 22.74 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001161/0.8799, allocations: 39.98 kB / 1.325 GB, free: 22.73 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004153/0.8803, allocations: 319.6 kB / 1.325 GB, free: 22.43 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002362/0.8805, allocations: 89.44 kB / 1.325 GB, free: 22.38 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.455e-05/0.8806, allocations: 33.86 kB / 1.326 GB, free: 22.37 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.226e-05/0.8806, allocations: 2.812 kB / 1.326 GB, free: 22.37 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001726/0.8808, allocations: 115.1 kB / 1.326 GB, free: 22.3 MB / 1.061 GB Notification: Performance of pre-optimization done (n=11): time 1.272e-06/0.8808, allocations: 0 / 1.326 GB, free: 22.3 MB / 1.061 GB Notification: Performance of matching and sorting (n=11): time 0.000321/0.8811, allocations: 176.9 kB / 1.326 GB, free: 22.22 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.239e-05/0.8811, allocations: 51.41 kB / 1.326 GB, free: 22.16 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.981e-05/0.8812, allocations: 112.4 kB / 1.326 GB, free: 22.05 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.23e-05/0.8812, allocations: 31.86 kB / 1.326 GB, free: 22.02 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 2.368e-05/0.8812, allocations: 86.94 kB / 1.326 GB, free: 21.93 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.55e-05/0.8812, allocations: 33.86 kB / 1.326 GB, free: 21.91 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.8e-05/0.8813, allocations: 32.31 kB / 1.326 GB, free: 21.88 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 4.235e-05/0.8813, allocations: 322.1 kB / 1.326 GB, free: 21.56 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.798e-05/0.8814, allocations: 29.95 kB / 1.326 GB, free: 21.55 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.079e-05/0.8815, allocations: 47.67 kB / 1.327 GB, free: 21.52 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001121/0.8816, allocations: 65.5 kB / 1.327 GB, free: 21.49 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.8816, allocations: 0 / 1.327 GB, free: 21.49 MB / 1.061 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001747/0.8818, allocations: 127.7 kB / 1.327 GB, free: 21.41 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.377e-05/0.8818, allocations: 7.812 kB / 1.327 GB, free: 21.41 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.458e-06/0.8818, allocations: 2.688 kB / 1.327 GB, free: 21.41 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.226e-05/0.8818, allocations: 0 / 1.327 GB, free: 21.41 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.711e-05/0.8818, allocations: 12.23 kB / 1.327 GB, free: 21.41 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.681e-06/0.8819, allocations: 2.688 kB / 1.327 GB, free: 21.41 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.199e-05/0.8819, allocations: 6.172 kB / 1.327 GB, free: 21.41 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.448e-06/0.8819, allocations: 9.188 kB / 1.327 GB, free: 21.41 MB / 1.061 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 5.715e-05/0.882, allocations: 124.6 kB / 1.327 GB, free: 21.28 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.579e-05/0.882, allocations: 9.672 kB / 1.327 GB, free: 21.28 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.598e-05/0.882, allocations: 12.12 kB / 1.327 GB, free: 21.27 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.882, allocations: 2.625 kB / 1.327 GB, free: 21.27 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.882, allocations: 0 / 1.327 GB, free: 21.27 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.882, allocations: 0 / 1.327 GB, free: 21.27 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.69e-05/0.8821, allocations: 206.6 kB / 1.327 GB, free: 21.05 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.8821, allocations: 3.094 kB / 1.327 GB, free: 21.05 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.81e-05/0.8822, allocations: 8.797 kB / 1.327 GB, free: 21.05 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.8822, allocations: 10.48 kB / 1.327 GB, free: 21.04 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.219e-05/0.8822, allocations: 4 kB / 1.327 GB, free: 21.04 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.8822, allocations: 4 kB / 1.327 GB, free: 21.03 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.8822, allocations: 2.938 kB / 1.327 GB, free: 21.03 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003014/0.8825, allocations: 217 kB / 1.327 GB, free: 20.91 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.927e-05/0.8825, allocations: 84.09 kB / 1.327 GB, free: 20.81 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.185e-05/0.8826, allocations: 3.422 kB / 1.327 GB, free: 20.81 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.764e-05/0.8826, allocations: 13.31 kB / 1.327 GB, free: 20.8 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.362e-05/0.8827, allocations: 12.7 kB / 1.327 GB, free: 20.8 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.033e-05/0.8827, allocations: 10.36 kB / 1.327 GB, free: 20.8 MB / 1.061 GB Notification: Performance of sorting global known variables: time 2.802e-05/0.8827, allocations: 87.44 kB / 1.328 GB, free: 20.72 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.8827, allocations: 0 / 1.328 GB, free: 20.72 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0001908/0.8829, allocations: 17.3 kB / 1.328 GB, free: 20.72 MB / 1.061 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.914e-05/0.883, allocations: 108.1 kB / 1.328 GB, free: 20.63 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002296/0.8832, allocations: 97.52 kB / 1.328 GB, free: 20.6 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.8832, allocations: 0 / 1.328 GB, free: 20.6 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001044/0.8833, allocations: 52.45 kB / 1.328 GB, free: 20.58 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001888/0.8835, allocations: 13.16 kB / 1.328 GB, free: 20.57 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000453/0.884, allocations: 299.9 kB / 1.328 GB, free: 20.34 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001014/0.8841, allocations: 0.6903 MB / 1.329 GB, free: 19.64 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.917e-05/0.8841, allocations: 12.25 kB / 1.329 GB, free: 19.64 MB / 1.061 GB Notification: Performance of SimCode: time 3.31e-07/0.8841, allocations: 0 / 1.329 GB, free: 19.64 MB / 1.061 GB Notification: Performance of Templates: time 0.002911/0.887, allocations: 1.158 MB / 1.33 GB, free: 19.55 MB / 1.061 GB " [Timeout remaining time 299] 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/jenkins1/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: 11.065365889997338]