Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001675/0.001675, allocations: 77.55 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.001971/0.001971, allocations: 162.4 kB / 23.02 MB, free: 4.949 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.498/1.498, allocations: 177.2 MB / 203.4 MB, free: 8.941 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.587/2.587, allocations: 359.1 MB / 0.6044 GB, free: 14.81 MB / 0.5762 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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_11_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_11_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.00228/0.00228, allocations: 67.91 kB / 0.9515 GB, free: 12.75 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3199/0.3222, allocations: 169.9 MB / 1.117 GB, free: 2.504 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.003455/0.3257, allocations: 1.596 MB / 1.119 GB, free: 0.8984 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.000987/0.3267, allocations: 486.9 kB / 1.119 GB, free: 428 kB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.044e-05/0.3267, allocations: 3.938 kB / 1.119 GB, free: 424 kB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 3.27e-05/0.3268, allocations: 3.938 kB / 1.119 GB, free: 420 kB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 8.897e-05/0.3269, allocations: 11.92 kB / 1.12 GB, free: 408 kB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002753/0.3271, allocations: 39.89 kB / 1.12 GB, free: 368 kB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001271/0.3273, allocations: 63.84 kB / 1.12 GB, free: 304 kB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 8.687e-05/0.3273, allocations: 11.98 kB / 1.12 GB, free: 292 kB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001448/0.3275, allocations: 47.84 kB / 1.12 GB, free: 244 kB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 8.097e-05/0.3276, allocations: 27.84 kB / 1.12 GB, free: 216 kB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.157e-05/0.3276, allocations: 8 kB / 1.12 GB, free: 208 kB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 4.826e-05/0.3276, allocations: 12 kB / 1.12 GB, free: 196 kB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 3.383e-05/0.3277, allocations: 23.91 kB / 1.12 GB, free: 172 kB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 4.935e-05/0.3277, allocations: 23.92 kB / 1.12 GB, free: 148 kB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001406/0.3279, allocations: 71.64 kB / 1.12 GB, free: 76 kB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.3279, allocations: 0 / 1.12 GB, free: 76 kB / 1.061 GB Notification: Performance of FrontEnd: time 1.423e-06/0.3279, allocations: 0 / 1.12 GB, free: 76 kB / 1.061 GB Notification: Performance of Transformations before backend: time 4.629e-06/0.3279, allocations: 0 / 1.12 GB, free: 76 kB / 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.0005825/0.3285, allocations: 302.2 kB / 1.12 GB, free: 15.75 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.8e-05/0.3285, allocations: 16.02 kB / 1.12 GB, free: 15.73 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001566/0.3287, allocations: 12.89 kB / 1.12 GB, free: 15.72 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002197/0.3289, allocations: 134.3 kB / 1.12 GB, free: 15.57 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.078e-05/0.3289, allocations: 4.375 kB / 1.12 GB, free: 15.56 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.387e-05/0.3289, allocations: 8.375 kB / 1.12 GB, free: 15.55 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001951/0.3291, allocations: 81.95 kB / 1.12 GB, free: 15.47 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.877e-06/0.3291, allocations: 0 / 1.12 GB, free: 15.47 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.337e-05/0.3291, allocations: 7.984 kB / 1.12 GB, free: 15.46 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.981e-06/0.3291, allocations: 4 kB / 1.12 GB, free: 15.46 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001297/0.3293, allocations: 43.91 kB / 1.12 GB, free: 15.41 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005058/0.3298, allocations: 248.5 kB / 1.121 GB, free: 15.14 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002542/0.33, allocations: 82.48 kB / 1.121 GB, free: 15.05 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.698e-05/0.3301, allocations: 44.86 kB / 1.121 GB, free: 15 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 1.719e-05/0.3301, allocations: 0 / 1.121 GB, free: 15 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002286/0.3304, allocations: 123.4 kB / 1.121 GB, free: 14.87 MB / 1.076 GB Notification: Performance of pre-optimization done (n=11): time 1.302e-06/0.3304, allocations: 0 / 1.121 GB, free: 14.87 MB / 1.076 GB Notification: Performance of matching and sorting (n=11): time 0.0004134/0.3308, allocations: 169.6 kB / 1.121 GB, free: 14.7 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.295e-05/0.3308, allocations: 59.34 kB / 1.121 GB, free: 14.63 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001018/0.3309, allocations: 117.8 kB / 1.121 GB, free: 14.5 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 2.065e-05/0.331, allocations: 25.7 kB / 1.121 GB, free: 14.47 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 5.471e-05/0.331, allocations: 88.38 kB / 1.121 GB, free: 14.38 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 4.138e-05/0.3311, allocations: 35.73 kB / 1.121 GB, free: 14.35 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.486e-05/0.3311, allocations: 29.66 kB / 1.121 GB, free: 14.31 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001414/0.3313, allocations: 322.8 kB / 1.122 GB, free: 13.99 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.647e-05/0.3313, allocations: 27.98 kB / 1.122 GB, free: 13.96 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.681e-05/0.3314, allocations: 49.69 kB / 1.122 GB, free: 13.91 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001472/0.3316, allocations: 65.58 kB / 1.122 GB, free: 13.84 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.3316, allocations: 0 / 1.122 GB, free: 13.84 MB / 1.076 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002184/0.3318, allocations: 110.1 kB / 1.122 GB, free: 13.72 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/0.3318, allocations: 8 kB / 1.122 GB, free: 13.71 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.3318, allocations: 0 / 1.122 GB, free: 13.71 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.811e-05/0.3318, allocations: 3.984 kB / 1.122 GB, free: 13.71 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.604e-05/0.3319, allocations: 19.94 kB / 1.122 GB, free: 13.69 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.145e-06/0.3319, allocations: 7.938 kB / 1.122 GB, free: 13.68 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.019e-05/0.332, allocations: 7.984 kB / 1.122 GB, free: 13.68 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.231e-05/0.332, allocations: 4 kB / 1.122 GB, free: 13.67 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 0.000112/0.3321, allocations: 121.8 kB / 1.122 GB, free: 13.54 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.962e-05/0.3322, allocations: 7.953 kB / 1.122 GB, free: 13.54 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.346e-05/0.3322, allocations: 20.42 kB / 1.122 GB, free: 13.52 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.3322, allocations: 4.031 kB / 1.122 GB, free: 13.51 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.3322, allocations: 0 / 1.122 GB, free: 13.51 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.3322, allocations: 0 / 1.122 GB, free: 13.51 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000158/0.3324, allocations: 137.2 kB / 1.122 GB, free: 13.35 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.3324, allocations: 0 / 1.122 GB, free: 13.35 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.759e-05/0.3324, allocations: 11.94 kB / 1.122 GB, free: 13.34 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.3324, allocations: 0 / 1.122 GB, free: 13.34 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.815e-05/0.3325, allocations: 7.984 kB / 1.122 GB, free: 13.33 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.487e-06/0.3325, allocations: 3.984 kB / 1.122 GB, free: 13.32 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.3325, allocations: 0 / 1.122 GB, free: 13.32 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004139/0.3329, allocations: 224.9 kB / 1.122 GB, free: 13.09 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 1.566e-05/0.3329, allocations: 15.91 kB / 1.123 GB, free: 13.07 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.378e-05/0.3329, allocations: 4 kB / 1.123 GB, free: 13.07 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.317e-05/0.333, allocations: 11.98 kB / 1.123 GB, free: 13.05 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.566e-05/0.3331, allocations: 11.97 kB / 1.123 GB, free: 13.04 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.319e-05/0.3331, allocations: 8 kB / 1.123 GB, free: 13.04 MB / 1.076 GB Notification: Performance of sorting global known variables: time 5.808e-05/0.3331, allocations: 95.52 kB / 1.123 GB, free: 12.94 MB / 1.076 GB Notification: Performance of sort global known variables: time 7e-08/0.3331, allocations: 0 / 1.123 GB, free: 12.94 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0002201/0.3333, allocations: 20 kB / 1.123 GB, free: 12.92 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 0.0001228/0.3335, allocations: 103.3 kB / 1.123 GB, free: 12.81 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0002431/0.3337, allocations: 87.89 kB / 1.123 GB, free: 12.73 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.3337, allocations: 0 / 1.123 GB, free: 12.73 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0001192/0.3338, allocations: 47.91 kB / 1.123 GB, free: 12.68 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002066/0.334, allocations: 18.58 kB / 1.123 GB, free: 12.66 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005623/0.3346, allocations: 265.8 kB / 1.123 GB, free: 12.38 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.879e-05/0.3347, allocations: 79.27 kB / 1.123 GB, free: 12.28 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 4.976e-05/0.3347, allocations: 12.72 kB / 1.123 GB, free: 12.27 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.69e-05/0.3348, allocations: 16.5 kB / 1.123 GB, free: 12.25 MB / 1.076 GB Notification: Performance of SimCode: time 3.7e-07/0.3348, allocations: 0 / 1.123 GB, free: 12.25 MB / 1.076 GB Notification: Performance of Templates: time 0.00405/0.3388, allocations: 1.098 MB / 1.124 GB, free: 11.17 MB / 1.076 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & ./Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge -abortSlowSimulation -alarm=400 -s ida -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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.603792736073956]