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.000855/0.000855, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001101/0.001956, allocations: 435.8 kB / 10.33 MB, free: 368 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.0007506/0.0007506, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009974/0.001748, allocations: 463.6 kB / 11.68 MB, free: 2.484 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 0.9759/0.9759, allocations: 177.2 MB / 189.6 MB, free: 5.301 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08529/1.061, allocations: 53.66 MB / 243.2 MB, free: 15.57 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.493/2.493, allocations: 446.7 MB / 0.6745 GB, free: 6.219 MB / 0.6511 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.2635/2.756, allocations: 145.9 MB / 0.817 GB, free: 4.215 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.943e-06/1.943e-06, allocations: 0 / 0.8183 GB, free: 2.898 MB / 0.7917 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.359e-05/2.554e-05, allocations: 10.25 kB / 0.8183 GB, free: 2.887 MB / 0.7917 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.00333/0.003355, allocations: 1.675 MB / 0.82 GB, free: 1.195 MB / 0.7917 GB Notification: Performance of NFInst.instExpressions: time 0.0008602/0.004215, allocations: 0.4985 MB / 0.8204 GB, free: 0.6914 MB / 0.7917 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.024e-05/0.004276, allocations: 0 / 0.8204 GB, free: 0.6914 MB / 0.7917 GB Notification: Performance of NFTyping.typeComponents: time 3.105e-05/0.004307, allocations: 3.938 kB / 0.8204 GB, free: 0.6875 MB / 0.7917 GB Notification: Performance of NFTyping.typeBindings: time 4.862e-05/0.004355, allocations: 15.92 kB / 0.8205 GB, free: 0.6719 MB / 0.7917 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001687/0.004524, allocations: 47.75 kB / 0.8205 GB, free: 0.625 MB / 0.7917 GB Notification: Performance of NFFlatten.flatten: time 0.0001346/0.004659, allocations: 67.84 kB / 0.8206 GB, free: 0.5586 MB / 0.7917 GB Notification: Performance of NFFlatten.resolveConnections: time 8.663e-05/0.004745, allocations: 7.938 kB / 0.8206 GB, free: 0.5508 MB / 0.7917 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001939/0.004939, allocations: 63.86 kB / 0.8206 GB, free: 500 kB / 0.7917 GB Notification: Performance of NFSimplifyModel.simplify: time 8.265e-05/0.005022, allocations: 19.92 kB / 0.8207 GB, free: 480 kB / 0.7917 GB Notification: Performance of NFPackage.collectConstants: time 2.22e-05/0.005044, allocations: 8 kB / 0.8207 GB, free: 472 kB / 0.7917 GB Notification: Performance of NFFlatten.collectFunctions: time 7.094e-05/0.005115, allocations: 11.98 kB / 0.8207 GB, free: 460 kB / 0.7917 GB Notification: Performance of NFScalarize.scalarize: time 2.021e-05/0.005135, allocations: 15.94 kB / 0.8207 GB, free: 444 kB / 0.7917 GB Notification: Performance of NFVerifyModel.verify: time 3.717e-05/0.005172, allocations: 16 kB / 0.8207 GB, free: 428 kB / 0.7917 GB Notification: Performance of NFConvertDAE.convert: time 0.0001393/0.005312, allocations: 51.83 kB / 0.8208 GB, free: 376 kB / 0.7917 GB Notification: Performance of FrontEnd - DAE generated: time 2.074e-05/0.005332, allocations: 0 / 0.8208 GB, free: 376 kB / 0.7917 GB Notification: Performance of FrontEnd: time 1.443e-06/0.005334, allocations: 0 / 0.8208 GB, free: 376 kB / 0.7917 GB Notification: Performance of Transformations before backend: time 2.018e-05/0.005354, allocations: 0 / 0.8208 GB, free: 376 kB / 0.7917 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.0005432/0.005897, allocations: 288.3 kB / 0.821 GB, free: 64 kB / 0.7917 GB Notification: Performance of prepare preOptimizeDAE: time 3.557e-05/0.005933, allocations: 8.031 kB / 0.821 GB, free: 56 kB / 0.7917 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001944/0.006127, allocations: 102 kB / 0.8211 GB, free: 15.94 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001501/0.006277, allocations: 121.8 kB / 0.8213 GB, free: 15.79 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.823e-05/0.006295, allocations: 384 / 0.8213 GB, free: 15.79 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.149e-05/0.006317, allocations: 8.375 kB / 0.8213 GB, free: 15.79 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001345/0.006451, allocations: 82.89 kB / 0.8213 GB, free: 15.7 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.127e-06/0.006461, allocations: 4.125 kB / 0.8213 GB, free: 15.69 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.191e-05/0.006472, allocations: 4.375 kB / 0.8214 GB, free: 15.69 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.883e-06/0.006479, allocations: 3.938 kB / 0.8214 GB, free: 15.68 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.704e-05/0.006536, allocations: 23.92 kB / 0.8214 GB, free: 15.66 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003354/0.006872, allocations: 180.2 kB / 0.8216 GB, free: 15.47 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001792/0.007051, allocations: 74.56 kB / 0.8216 GB, free: 15.39 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.315e-05/0.007084, allocations: 16.86 kB / 0.8216 GB, free: 15.37 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.382e-05/0.007098, allocations: 0 / 0.8216 GB, free: 15.37 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001635/0.007261, allocations: 99.27 kB / 0.8217 GB, free: 15.26 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=11): time 2.976e-06/0.007264, allocations: 3.984 kB / 0.8217 GB, free: 15.25 MB / 0.8073 GB Notification: Performance of matching and sorting (n=11): time 0.000185/0.007449, allocations: 101.5 kB / 0.8218 GB, free: 15.15 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.967e-05/0.007499, allocations: 59.39 kB / 0.8219 GB, free: 15.08 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.005e-05/0.007569, allocations: 114.8 kB / 0.822 GB, free: 14.95 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.951e-05/0.007589, allocations: 41.64 kB / 0.822 GB, free: 14.91 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 3.459e-05/0.007623, allocations: 84.33 kB / 0.8221 GB, free: 14.82 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 3.625e-05/0.007659, allocations: 31.72 kB / 0.8221 GB, free: 14.79 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.062e-05/0.00771, allocations: 37.7 kB / 0.8222 GB, free: 14.74 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 9.155e-05/0.007802, allocations: 318.8 kB / 0.8225 GB, free: 14.42 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.646e-05/0.007828, allocations: 8 kB / 0.8225 GB, free: 14.41 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.997e-05/0.007868, allocations: 32.2 kB / 0.8225 GB, free: 14.38 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.978e-05/0.007938, allocations: 49.61 kB / 0.8226 GB, free: 14.32 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.007941, allocations: 0 / 0.8226 GB, free: 14.32 MB / 0.8073 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001075/0.008048, allocations: 69.67 kB / 0.8226 GB, free: 14.25 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/0.008065, allocations: 11.94 kB / 0.8227 GB, free: 14.24 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.008071, allocations: 7.922 kB / 0.8227 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.087e-05/0.008082, allocations: 0 / 0.8227 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.769e-05/0.00816, allocations: 12 kB / 0.8227 GB, free: 14.22 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.286e-06/0.008163, allocations: 0 / 0.8227 GB, free: 14.22 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.314e-05/0.008206, allocations: 7.984 kB / 0.8227 GB, free: 14.21 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.077e-06/0.008215, allocations: 11.94 kB / 0.8227 GB, free: 14.2 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.382e-05/0.008289, allocations: 113.8 kB / 0.8228 GB, free: 14.08 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.96e-05/0.008309, allocations: 15.92 kB / 0.8228 GB, free: 14.06 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.174e-05/0.00834, allocations: 16.38 kB / 0.8228 GB, free: 14.05 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.063e-06/0.008342, allocations: 0 / 0.8228 GB, free: 14.05 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.634e-06/0.008344, allocations: 4 kB / 0.8228 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.008348, allocations: 0 / 0.8228 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.947e-05/0.008447, allocations: 89.88 kB / 0.8229 GB, free: 13.94 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.008451, allocations: 3.984 kB / 0.8229 GB, free: 13.93 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.757e-05/0.008518, allocations: 8 kB / 0.8229 GB, free: 13.93 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 9.067e-06/0.008527, allocations: 3.953 kB / 0.8229 GB, free: 13.92 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/0.008531, allocations: 4 kB / 0.8229 GB, free: 13.92 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.468e-05/0.008546, allocations: 7.922 kB / 0.8229 GB, free: 13.91 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.008548, allocations: 0 / 0.8229 GB, free: 13.91 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.008549, allocations: 4 kB / 0.823 GB, free: 13.91 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002039/0.008753, allocations: 141.5 kB / 0.8231 GB, free: 13.75 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.013e-05/0.008773, allocations: 3.938 kB / 0.8231 GB, free: 13.75 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.088e-05/0.008814, allocations: 4 kB / 0.8231 GB, free: 13.74 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.635e-05/0.00886, allocations: 19.91 kB / 0.8231 GB, free: 13.72 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.046e-05/0.008871, allocations: 7.984 kB / 0.8231 GB, free: 13.71 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 1.8e-05/0.008889, allocations: 12.86 kB / 0.8231 GB, free: 13.7 MB / 0.8073 GB Notification: Performance of sort global known variables: time 6e-08/0.008889, allocations: 0 / 0.8231 GB, free: 13.7 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001712/0.00906, allocations: 19.94 kB / 0.8232 GB, free: 13.68 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 0.0001224/0.009182, allocations: 92.44 kB / 0.8232 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001272/0.00931, allocations: 60.8 kB / 0.8233 GB, free: 13.52 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 6.332e-06/0.009316, allocations: 4 kB / 0.8233 GB, free: 13.52 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 5.901e-05/0.009375, allocations: 40.78 kB / 0.8233 GB, free: 13.47 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001376/0.009513, allocations: 23.97 kB / 0.8234 GB, free: 13.45 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001258/0.01077, allocations: 212.7 kB / 0.8236 GB, free: 13.21 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.207e-05/0.01081, allocations: 64.19 kB / 0.8236 GB, free: 13.13 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 4.784e-05/0.01086, allocations: 8.719 kB / 0.8236 GB, free: 13.12 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.707e-05/0.01093, allocations: 55.38 kB / 0.8237 GB, free: 13.07 MB / 0.8073 GB Notification: Performance of SimCode: time 6.61e-07/0.01093, allocations: 0 / 0.8237 GB, free: 13.07 MB / 0.8073 GB Notification: Performance of Templates: time 0.003819/0.01475, allocations: 1.258 MB / 0.8249 GB, free: 11.83 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,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.290142995305359]