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.001999/0.001999, allocations: 79.66 kB / 19.76 MB, free: 2.031 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.002621/0.002621, allocations: 156.5 kB / 23.01 MB, free: 4.941 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.459/1.459, allocations: 177.2 MB / 203.4 MB, free: 8.957 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.888/2.888, allocations: 394.2 MB / 0.6386 GB, free: 11.91 MB / 0.6075 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 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: 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.00205/0.00205, allocations: 63.89 kB / 1.009 GB, free: 14.44 MB / 0.9669 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9264/0.9285, allocations: 181.8 MB / 1.187 GB, free: 16.24 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002643/0.9311, allocations: 1.596 MB / 1.188 GB, free: 15.15 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.0008352/0.9319, allocations: 478.8 kB / 1.189 GB, free: 14.84 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.446e-05/0.932, allocations: 1.344 kB / 1.189 GB, free: 14.84 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 3.167e-05/0.932, allocations: 4.5 kB / 1.189 GB, free: 14.84 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 5.882e-05/0.9321, allocations: 14.64 kB / 1.189 GB, free: 14.82 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002237/0.9323, allocations: 42.09 kB / 1.189 GB, free: 14.8 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.0001267/0.9324, allocations: 82.23 kB / 1.189 GB, free: 14.76 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 9.291e-05/0.9325, allocations: 6.109 kB / 1.189 GB, free: 14.76 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001364/0.9327, allocations: 40.45 kB / 1.189 GB, free: 14.74 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 7.72e-05/0.9327, allocations: 32.2 kB / 1.189 GB, free: 14.72 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 1.893e-05/0.9328, allocations: 6.406 kB / 1.189 GB, free: 14.72 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 4.433e-05/0.9328, allocations: 9.062 kB / 1.189 GB, free: 14.72 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 2.394e-05/0.9328, allocations: 17.95 kB / 1.189 GB, free: 14.71 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 4.139e-05/0.9329, allocations: 22.92 kB / 1.189 GB, free: 14.7 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0001385/0.933, allocations: 73.47 kB / 1.189 GB, free: 14.67 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.933, allocations: 0.75 kB / 1.189 GB, free: 14.67 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.553e-06/0.933, allocations: 4 kB / 1.189 GB, free: 14.67 MB / 1.076 GB Notification: Performance of Transformations before backend: time 5.521e-06/0.933, allocations: 0 / 1.189 GB, free: 14.67 MB / 1.076 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.0004966/0.9335, allocations: 297.8 kB / 1.189 GB, free: 14.39 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.471e-05/0.9336, allocations: 8.531 kB / 1.189 GB, free: 14.39 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001536/0.9337, allocations: 14.78 kB / 1.189 GB, free: 14.39 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001878/0.9339, allocations: 135.4 kB / 1.189 GB, free: 14.25 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.516e-05/0.9339, allocations: 8.172 kB / 1.189 GB, free: 14.24 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.005e-05/0.934, allocations: 6.234 kB / 1.189 GB, free: 14.24 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001918/0.9341, allocations: 91.5 kB / 1.19 GB, free: 14.19 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.9342, allocations: 0 / 1.19 GB, free: 14.19 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.481e-05/0.9342, allocations: 6.125 kB / 1.19 GB, free: 14.18 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.081e-06/0.9342, allocations: 1.156 kB / 1.19 GB, free: 14.18 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001349/0.9343, allocations: 46.7 kB / 1.19 GB, free: 14.17 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004365/0.9348, allocations: 243.7 kB / 1.19 GB, free: 13.95 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002582/0.935, allocations: 87.84 kB / 1.19 GB, free: 13.9 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.573e-05/0.9351, allocations: 41.36 kB / 1.19 GB, free: 13.88 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 1.312e-05/0.9351, allocations: 1.734 kB / 1.19 GB, free: 13.88 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002324/0.9353, allocations: 112.6 kB / 1.19 GB, free: 13.81 MB / 1.076 GB Notification: Performance of pre-optimization done (n=11): time 1.463e-06/0.9353, allocations: 0 / 1.19 GB, free: 13.81 MB / 1.076 GB Notification: Performance of matching and sorting (n=11): time 0.0004191/0.9358, allocations: 168.3 kB / 1.19 GB, free: 13.74 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.745e-05/0.9358, allocations: 61.56 kB / 1.19 GB, free: 13.67 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.617e-05/0.9359, allocations: 114.4 kB / 1.19 GB, free: 13.56 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 1.247e-05/0.9359, allocations: 34.95 kB / 1.19 GB, free: 13.52 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 3.455e-05/0.9359, allocations: 88.39 kB / 1.19 GB, free: 13.43 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 3.351e-05/0.9359, allocations: 34.44 kB / 1.191 GB, free: 13.41 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.796e-05/0.936, allocations: 32.86 kB / 1.191 GB, free: 13.38 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 5.608e-05/0.936, allocations: 319.6 kB / 1.191 GB, free: 13.06 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.817e-05/0.9361, allocations: 28.89 kB / 1.191 GB, free: 13.05 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.865e-05/0.9362, allocations: 51.88 kB / 1.191 GB, free: 13.03 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001305/0.9363, allocations: 64.55 kB / 1.191 GB, free: 12.99 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.9363, allocations: 1.25 kB / 1.191 GB, free: 12.99 MB / 1.076 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002077/0.9365, allocations: 119.8 kB / 1.191 GB, free: 12.93 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/0.9366, allocations: 8.453 kB / 1.191 GB, free: 12.93 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.02e-06/0.9366, allocations: 0 / 1.191 GB, free: 12.93 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.806e-05/0.9366, allocations: 1.25 kB / 1.191 GB, free: 12.93 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.568e-05/0.9367, allocations: 11.97 kB / 1.191 GB, free: 12.93 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.103e-06/0.9367, allocations: 5.188 kB / 1.191 GB, free: 12.92 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.342e-05/0.9368, allocations: 15.78 kB / 1.191 GB, free: 12.91 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.01e-05/0.9368, allocations: 2.75 kB / 1.191 GB, free: 12.91 MB / 1.076 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 6.72e-05/0.9368, allocations: 124.8 kB / 1.191 GB, free: 12.79 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.826e-05/0.9368, allocations: 9.594 kB / 1.191 GB, free: 12.79 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.013e-05/0.9369, allocations: 14.33 kB / 1.191 GB, free: 12.77 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.9369, allocations: 2.109 kB / 1.191 GB, free: 12.77 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.9369, allocations: 0 / 1.191 GB, free: 12.77 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.9369, allocations: 6.219 kB / 1.191 GB, free: 12.77 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.825e-05/0.937, allocations: 131 kB / 1.191 GB, free: 12.63 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.937, allocations: 1.375 kB / 1.191 GB, free: 12.63 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.388e-05/0.9371, allocations: 12.39 kB / 1.191 GB, free: 12.62 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.896e-06/0.9371, allocations: 1.188 kB / 1.191 GB, free: 12.62 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.387e-05/0.9371, allocations: 6.781 kB / 1.191 GB, free: 12.62 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.9371, allocations: 6.266 kB / 1.191 GB, free: 12.62 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.9371, allocations: 0 / 1.191 GB, free: 12.62 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003562/0.9374, allocations: 221.8 kB / 1.192 GB, free: 12.49 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 1.068e-05/0.9375, allocations: 6.172 kB / 1.192 GB, free: 12.49 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.444e-05/0.9375, allocations: 8.156 kB / 1.192 GB, free: 12.48 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.288e-05/0.9375, allocations: 6.625 kB / 1.192 GB, free: 12.48 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.587e-05/0.9376, allocations: 20.84 kB / 1.192 GB, free: 12.48 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.192e-05/0.9376, allocations: 5.203 kB / 1.192 GB, free: 12.48 MB / 1.076 GB Notification: Performance of sorting global known variables: time 3.286e-05/0.9377, allocations: 97.84 kB / 1.192 GB, free: 12.39 MB / 1.076 GB Notification: Performance of sort global known variables: time 9e-08/0.9377, allocations: 0 / 1.192 GB, free: 12.39 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0002057/0.9379, allocations: 20.17 kB / 1.192 GB, free: 12.39 MB / 1.076 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 9.724e-05/0.938, allocations: 102.7 kB / 1.192 GB, free: 12.3 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.000224/0.9382, allocations: 84.28 kB / 1.192 GB, free: 12.27 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.9382, allocations: 0 / 1.192 GB, free: 12.27 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0001161/0.9383, allocations: 52.64 kB / 1.192 GB, free: 12.26 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002173/0.9385, allocations: 20.47 kB / 1.192 GB, free: 12.25 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004641/0.939, allocations: 265.9 kB / 1.192 GB, free: 12.04 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.857e-05/0.939, allocations: 75.58 kB / 1.192 GB, free: 11.97 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 4.598e-05/0.9391, allocations: 15.95 kB / 1.192 GB, free: 11.96 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.498e-05/0.9391, allocations: 13.61 kB / 1.192 GB, free: 11.95 MB / 1.076 GB Notification: Performance of SimCode: time 5.62e-07/0.9391, allocations: 0 / 1.192 GB, free: 11.95 MB / 1.076 GB Notification: Performance of Templates: time 0.004407/0.9435, allocations: 1.098 MB / 1.193 GB, free: 11.83 MB / 1.076 GB " [Timeout remaining time 299] 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=800 -s ida -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 8.875558673986234]