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.001358/0.001358, allocations: 110.2 kB / 19.69 MB, free: 2.254 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.001643/0.001643, allocations: 210.4 kB / 23 MB, free: 4.562 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.328/1.328, allocations: 230.6 MB / 256.8 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 179] 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.857/2.857, allocations: 0.49 GB / 0.7958 GB, free: 33.55 MB / 0.6231 GB " [Timeout remaining time 177] 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.001847/0.001847, allocations: 66.39 kB / 1.155 GB, free: 25.41 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.304/0.3059, allocations: 176.1 MB / 1.327 GB, free: 1.48 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002755/0.3086, allocations: 1.612 MB / 1.329 GB, free: 15.86 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.000856/0.3095, allocations: 0.5143 MB / 1.329 GB, free: 15.34 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.018e-05/0.3095, allocations: 4 kB / 1.329 GB, free: 15.34 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 2.786e-05/0.3096, allocations: 3.938 kB / 1.329 GB, free: 15.33 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 5.682e-05/0.3096, allocations: 15.8 kB / 1.329 GB, free: 15.32 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002193/0.3098, allocations: 43.89 kB / 1.329 GB, free: 15.27 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001275/0.31, allocations: 67.84 kB / 1.329 GB, free: 15.21 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 8.59e-05/0.3101, allocations: 11.98 kB / 1.329 GB, free: 15.2 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001202/0.3102, allocations: 35.91 kB / 1.329 GB, free: 15.16 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 7.86e-05/0.3103, allocations: 39.78 kB / 1.329 GB, free: 15.12 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.683e-05/0.3103, allocations: 12 kB / 1.329 GB, free: 15.11 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 3.994e-05/0.3103, allocations: 8 kB / 1.329 GB, free: 15.1 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.224e-05/0.3103, allocations: 15.97 kB / 1.329 GB, free: 15.09 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 4.841e-05/0.3104, allocations: 27.86 kB / 1.329 GB, free: 15.06 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.000141/0.3105, allocations: 75.7 kB / 1.33 GB, free: 14.98 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.3105, allocations: 0 / 1.33 GB, free: 14.98 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.062e-06/0.3105, allocations: 0 / 1.33 GB, free: 14.98 MB / 1.029 GB Notification: Performance of Transformations before backend: time 4.268e-06/0.3105, allocations: 0 / 1.33 GB, free: 14.98 MB / 1.029 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.0005257/0.3111, allocations: 310.1 kB / 1.33 GB, free: 14.65 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 2.927e-05/0.3111, allocations: 8.031 kB / 1.33 GB, free: 14.64 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001326/0.3112, allocations: 16.89 kB / 1.33 GB, free: 14.63 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000186/0.3114, allocations: 122.5 kB / 1.33 GB, free: 14.48 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.829e-05/0.3114, allocations: 4.375 kB / 1.33 GB, free: 14.48 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.47e-05/0.3114, allocations: 8.312 kB / 1.33 GB, free: 14.47 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001782/0.3116, allocations: 89.89 kB / 1.33 GB, free: 14.38 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-06/0.3116, allocations: 3.984 kB / 1.33 GB, free: 14.38 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.434e-05/0.3116, allocations: 4 kB / 1.33 GB, free: 14.37 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.837e-06/0.3116, allocations: 4 kB / 1.33 GB, free: 14.37 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001272/0.3118, allocations: 43.97 kB / 1.33 GB, free: 14.32 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004926/0.3123, allocations: 295.7 kB / 1.33 GB, free: 13.99 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002289/0.3125, allocations: 78.55 kB / 1.33 GB, free: 13.91 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.833e-05/0.3126, allocations: 40.94 kB / 1.331 GB, free: 13.86 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.4e-05/0.3126, allocations: 3.984 kB / 1.331 GB, free: 13.86 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002045/0.3128, allocations: 119.3 kB / 1.331 GB, free: 13.73 MB / 1.029 GB Notification: Performance of pre-optimization done (n=11): time 1.363e-06/0.3128, allocations: 0 / 1.331 GB, free: 13.73 MB / 1.029 GB Notification: Performance of matching and sorting (n=11): time 0.0003742/0.3132, allocations: 173.6 kB / 1.331 GB, free: 13.55 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.417e-05/0.3132, allocations: 59.33 kB / 1.331 GB, free: 13.48 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.064e-05/0.3133, allocations: 113.8 kB / 1.331 GB, free: 13.36 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.267e-05/0.3133, allocations: 33.7 kB / 1.331 GB, free: 13.32 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 4.756e-05/0.3134, allocations: 84.38 kB / 1.331 GB, free: 13.24 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.096e-05/0.3134, allocations: 31.73 kB / 1.331 GB, free: 13.21 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.549e-05/0.3135, allocations: 25.72 kB / 1.331 GB, free: 13.18 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.000142/0.3136, allocations: 326.8 kB / 1.331 GB, free: 12.85 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.43e-05/0.3137, allocations: 31.98 kB / 1.331 GB, free: 12.82 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.624e-05/0.3138, allocations: 56.12 kB / 1.332 GB, free: 12.76 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001302/0.3139, allocations: 61.7 kB / 1.332 GB, free: 12.69 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.3139, allocations: 0 / 1.332 GB, free: 12.69 MB / 1.029 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002043/0.3141, allocations: 113.5 kB / 1.332 GB, free: 12.57 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.113e-05/0.3141, allocations: 5.875 kB / 1.332 GB, free: 12.57 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.3141, allocations: 4 kB / 1.332 GB, free: 12.57 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.384e-05/0.3141, allocations: 4.031 kB / 1.332 GB, free: 12.56 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.109e-05/0.3142, allocations: 15.98 kB / 1.332 GB, free: 12.55 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.539e-06/0.3142, allocations: 0 / 1.332 GB, free: 12.55 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.979e-05/0.3143, allocations: 15.98 kB / 1.332 GB, free: 12.53 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.337e-06/0.3143, allocations: 4 kB / 1.332 GB, free: 12.53 MB / 1.029 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.63e-05/0.3144, allocations: 122.1 kB / 1.332 GB, free: 12.4 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.796e-05/0.3144, allocations: 7.953 kB / 1.332 GB, free: 12.39 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.254e-05/0.3145, allocations: 24.36 kB / 1.332 GB, free: 12.36 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.3145, allocations: 0 / 1.332 GB, free: 12.36 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.975e-06/0.3145, allocations: 3.938 kB / 1.332 GB, free: 12.36 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.3145, allocations: 0 / 1.332 GB, free: 12.36 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001611/0.3146, allocations: 172.6 kB / 1.332 GB, free: 12.15 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.3146, allocations: 0 / 1.332 GB, free: 12.15 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001029/0.3147, allocations: 11.98 kB / 1.332 GB, free: 12.14 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.3147, allocations: 0 / 1.332 GB, free: 12.14 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.102e-05/0.3147, allocations: 0 / 1.332 GB, free: 12.14 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.3147, allocations: 0 / 1.332 GB, free: 12.14 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.3147, allocations: 4 kB / 1.332 GB, free: 12.13 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003726/0.3151, allocations: 224.8 kB / 1.332 GB, free: 11.89 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.436e-05/0.3151, allocations: 11.92 kB / 1.332 GB, free: 11.88 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.655e-05/0.3152, allocations: 4 kB / 1.332 GB, free: 11.88 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.939e-05/0.3152, allocations: 7.984 kB / 1.332 GB, free: 11.87 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.065e-05/0.3153, allocations: 15.97 kB / 1.332 GB, free: 11.86 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.698e-06/0.3153, allocations: 8.062 kB / 1.332 GB, free: 11.85 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.038e-05/0.3154, allocations: 91.27 kB / 1.332 GB, free: 11.76 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3154, allocations: 0 / 1.332 GB, free: 11.76 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0001912/0.3155, allocations: 20 kB / 1.332 GB, free: 11.74 MB / 1.029 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.0001167/0.3157, allocations: 111.2 kB / 1.333 GB, free: 11.62 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002235/0.3159, allocations: 96.48 kB / 1.333 GB, free: 11.53 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.3159, allocations: 0 / 1.333 GB, free: 11.53 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001003/0.316, allocations: 47.92 kB / 1.333 GB, free: 11.48 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001843/0.3162, allocations: 11.98 kB / 1.333 GB, free: 11.47 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005483/0.3167, allocations: 288 kB / 1.333 GB, free: 11.16 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003371/0.3171, allocations: 0.6924 MB / 1.334 GB, free: 10.44 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.803e-05/0.3171, allocations: 15.38 kB / 1.334 GB, free: 10.42 MB / 1.029 GB Notification: Performance of SimCode: time 2.71e-07/0.3171, allocations: 0 / 1.334 GB, free: 10.42 MB / 1.029 GB Notification: Performance of Templates: time 0.002794/0.3199, allocations: 1.165 MB / 1.335 GB, free: 9.258 MB / 1.029 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=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: 9.903961977979634]