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.000856/0.000856, allocations: 81.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001201/0.002057, allocations: 449.8 kB / 10.44 MB, free: 252 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.0007764/0.0007764, allocations: 161.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001158/0.001935, allocations: 479.5 kB / 11.82 MB, free: 2.344 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.943/0.943, allocations: 177.2 MB / 189.8 MB, free: 5.25 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09584/1.039, allocations: 53.66 MB / 243.4 MB, free: 15.5 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.819/1.819, allocations: 378.4 MB / 0.6079 GB, free: 7.703 MB / 0.5886 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.535/2.354, allocations: 123.3 MB / 0.7283 GB, free: 5.738 MB / 0.698 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-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: Performance of FrontEnd - loaded program: time 2.274e-06/2.274e-06, allocations: 0 / 0.7297 GB, free: 4.41 MB / 0.698 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.416e-05/2.644e-05, allocations: 2.312 kB / 0.7297 GB, free: 4.406 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.003345/0.003372, allocations: 1.695 MB / 0.7313 GB, free: 2.73 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.000882/0.004254, allocations: 0.5077 MB / 0.7318 GB, free: 2.227 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.162e-05/0.004315, allocations: 0 / 0.7318 GB, free: 2.227 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 2.908e-05/0.004344, allocations: 3.938 kB / 0.7318 GB, free: 2.223 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 5.817e-05/0.004403, allocations: 11.72 kB / 0.7318 GB, free: 2.215 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001927/0.004595, allocations: 47.3 kB / 0.7319 GB, free: 2.172 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.0001545/0.00475, allocations: 66.7 kB / 0.7319 GB, free: 2.117 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 9.38e-05/0.004844, allocations: 11.97 kB / 0.732 GB, free: 2.105 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002135/0.005057, allocations: 59.8 kB / 0.732 GB, free: 2.051 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 8.997e-05/0.005147, allocations: 23.12 kB / 0.732 GB, free: 2.031 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 2.212e-05/0.005169, allocations: 8.594 kB / 0.732 GB, free: 2.023 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 7.136e-05/0.005241, allocations: 8 kB / 0.732 GB, free: 2.016 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 2.639e-05/0.005267, allocations: 12.47 kB / 0.7321 GB, free: 2.004 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 3.986e-05/0.005307, allocations: 24.86 kB / 0.7321 GB, free: 1.98 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0001497/0.005457, allocations: 43.89 kB / 0.7321 GB, free: 1.938 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 1.544e-05/0.005472, allocations: 0 / 0.7321 GB, free: 1.938 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.743e-06/0.005474, allocations: 4.469 kB / 0.7321 GB, free: 1.934 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.586e-05/0.00549, allocations: 0.875 kB / 0.7321 GB, free: 1.934 MB / 0.698 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.0005331/0.006023, allocations: 284.4 kB / 0.7324 GB, free: 1.633 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/0.006062, allocations: 9.469 kB / 0.7324 GB, free: 1.625 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000199/0.006261, allocations: 98.02 kB / 0.7325 GB, free: 1.512 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001711/0.006432, allocations: 121.7 kB / 0.7326 GB, free: 1.367 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.021e-05/0.006452, allocations: 5.031 kB / 0.7326 GB, free: 1.363 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.874e-05/0.006481, allocations: 5.062 kB / 0.7326 GB, free: 1.359 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001475/0.006629, allocations: 82.89 kB / 0.7327 GB, free: 1.27 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.364e-06/0.006636, allocations: 1.906 kB / 0.7327 GB, free: 1.27 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.487e-06/0.006646, allocations: 4.375 kB / 0.7327 GB, free: 1.266 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.006653, allocations: 3.938 kB / 0.7327 GB, free: 1.262 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.744e-05/0.0067, allocations: 19.92 kB / 0.7327 GB, free: 1.242 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000327/0.007027, allocations: 185 kB / 0.7329 GB, free: 1.047 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001765/0.007204, allocations: 67.05 kB / 0.733 GB, free: 0.9727 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.145e-05/0.007235, allocations: 21.34 kB / 0.733 GB, free: 0.9492 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.364e-05/0.007249, allocations: 1.281 kB / 0.733 GB, free: 0.9492 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001629/0.007412, allocations: 100.4 kB / 0.7331 GB, free: 0.8398 MB / 0.698 GB Notification: Performance of pre-optimization done (n=11): time 2.524e-06/0.007414, allocations: 0 / 0.7331 GB, free: 0.8398 MB / 0.698 GB Notification: Performance of matching and sorting (n=11): time 0.0001906/0.007605, allocations: 101.5 kB / 0.7332 GB, free: 0.7344 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.346e-05/0.007648, allocations: 60.03 kB / 0.7332 GB, free: 0.6641 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.591e-05/0.007724, allocations: 127.2 kB / 0.7334 GB, free: 0.5273 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.761e-05/0.007742, allocations: 29.7 kB / 0.7334 GB, free: 0.4922 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 3.805e-05/0.00778, allocations: 86.12 kB / 0.7335 GB, free: 416 kB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 3.521e-05/0.007815, allocations: 27.73 kB / 0.7335 GB, free: 388 kB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.781e-05/0.007863, allocations: 33.69 kB / 0.7335 GB, free: 348 kB / 0.698 GB Notification: Performance of setup shared object (initialization): time 9.332e-05/0.007956, allocations: 322.8 kB / 0.7338 GB, free: 16 kB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.575e-05/0.007982, allocations: 8 kB / 0.7339 GB, free: 8 kB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.635e-05/0.008048, allocations: 34.34 kB / 0.7339 GB, free: 15.96 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.815e-05/0.008116, allocations: 38.69 kB / 0.7339 GB, free: 15.92 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.008119, allocations: 4 kB / 0.7339 GB, free: 15.92 MB / 0.7136 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001167/0.008235, allocations: 77.47 kB / 0.734 GB, free: 15.84 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.753e-05/0.008253, allocations: 12.47 kB / 0.734 GB, free: 15.83 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.008258, allocations: 1.125 kB / 0.734 GB, free: 15.83 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.512e-05/0.008273, allocations: 0 / 0.734 GB, free: 15.83 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.799e-05/0.008351, allocations: 19.92 kB / 0.734 GB, free: 15.81 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.807e-06/0.008355, allocations: 0.7188 kB / 0.734 GB, free: 15.81 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.726e-05/0.008402, allocations: 4 kB / 0.734 GB, free: 15.8 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.085e-06/0.008411, allocations: 5.031 kB / 0.734 GB, free: 15.8 MB / 0.7136 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 9.153e-05/0.008502, allocations: 119.6 kB / 0.7342 GB, free: 15.68 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.174e-05/0.008524, allocations: 15.98 kB / 0.7342 GB, free: 15.66 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.143e-05/0.008555, allocations: 14.12 kB / 0.7342 GB, free: 15.64 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.008557, allocations: 0 / 0.7342 GB, free: 15.64 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.525e-06/0.00856, allocations: 0 / 0.7342 GB, free: 15.64 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.008564, allocations: 0 / 0.7342 GB, free: 15.64 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001011/0.008665, allocations: 93.86 kB / 0.7343 GB, free: 15.54 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.008667, allocations: 1.219 kB / 0.7343 GB, free: 15.54 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.995e-05/0.008727, allocations: 15.92 kB / 0.7343 GB, free: 15.52 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 9.318e-06/0.008736, allocations: 7.953 kB / 0.7343 GB, free: 15.51 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.866e-06/0.008739, allocations: 1.531 kB / 0.7343 GB, free: 15.51 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.431e-05/0.008753, allocations: 7.938 kB / 0.7343 GB, free: 15.5 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.008756, allocations: 3.984 kB / 0.7343 GB, free: 15.5 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.008758, allocations: 0 / 0.7343 GB, free: 15.5 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001949/0.008953, allocations: 126.2 kB / 0.7344 GB, free: 15.36 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.418e-05/0.008977, allocations: 12.73 kB / 0.7344 GB, free: 15.35 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.667e-05/0.009013, allocations: 4 kB / 0.7344 GB, free: 15.34 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.558e-05/0.009059, allocations: 20.56 kB / 0.7345 GB, free: 15.32 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.314e-06/0.009066, allocations: 0 / 0.7345 GB, free: 15.32 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 2.403e-05/0.00909, allocations: 29.52 kB / 0.7345 GB, free: 15.29 MB / 0.7136 GB Notification: Performance of sort global known variables: time 7.1e-08/0.00909, allocations: 0 / 0.7345 GB, free: 15.29 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0001735/0.009264, allocations: 20.91 kB / 0.7345 GB, free: 15.27 MB / 0.7136 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.0001344/0.009398, allocations: 89.62 kB / 0.7346 GB, free: 15.18 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001239/0.009522, allocations: 56.72 kB / 0.7347 GB, free: 15.12 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 6.201e-06/0.009528, allocations: 0 / 0.7347 GB, free: 15.12 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 7.063e-05/0.009599, allocations: 45.34 kB / 0.7347 GB, free: 15.07 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001598/0.009759, allocations: 58.77 kB / 0.7348 GB, free: 15.01 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001172/0.01093, allocations: 210.9 kB / 0.735 GB, free: 14.78 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.804e-05/0.01097, allocations: 63.34 kB / 0.735 GB, free: 14.7 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 4.856e-05/0.01102, allocations: 12.5 kB / 0.735 GB, free: 14.69 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.317e-05/0.01109, allocations: 59.38 kB / 0.7351 GB, free: 14.63 MB / 0.7136 GB Notification: Performance of SimCode: time 8.52e-07/0.01109, allocations: 0 / 0.7351 GB, free: 14.63 MB / 0.7136 GB Notification: Performance of Templates: time 0.003963/0.01505, allocations: 1.243 MB / 0.7363 GB, free: 13.46 MB / 0.7136 GB " [Timeout remaining time 300] 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge/Buildings_12_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: 4.835537964478135]