Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001543/0.001543, allocations: 109.8 kB / 17.08 MB, free: 5.965 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001375/0.001376, allocations: 196.2 kB / 20.03 MB, free: 3.039 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.469/1.469, allocations: 222.9 MB / 245.7 MB, free: 4.199 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.693/2.693, allocations: 437.1 MB / 0.7177 GB, free: 4.562 MB / 0.5606 GB " [Timeout remaining time 177] Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_10_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_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001987/0.001987, allocations: 75.89 kB / 1.028 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3342/0.3362, allocations: 151.6 MB / 1.176 GB, free: 5.875 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002965/0.3392, allocations: 1.568 MB / 1.177 GB, free: 4.285 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.000772/0.34, allocations: 447 kB / 1.178 GB, free: 3.844 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.725e-05/0.34, allocations: 0 / 1.178 GB, free: 3.844 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.285e-05/0.3401, allocations: 3.938 kB / 1.178 GB, free: 3.84 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 7.325e-05/0.3402, allocations: 11.86 kB / 1.178 GB, free: 3.828 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002007/0.3404, allocations: 35.89 kB / 1.178 GB, free: 3.793 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001121/0.3405, allocations: 71.84 kB / 1.178 GB, free: 3.723 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001017/0.3406, allocations: 11.98 kB / 1.178 GB, free: 3.711 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001027/0.3407, allocations: 35.84 kB / 1.178 GB, free: 3.676 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 8.153e-05/0.3408, allocations: 35.84 kB / 1.178 GB, free: 3.641 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.056e-05/0.3408, allocations: 4 kB / 1.178 GB, free: 3.637 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 1.651e-05/0.3409, allocations: 8 kB / 1.178 GB, free: 3.629 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.707e-05/0.3409, allocations: 11.98 kB / 1.178 GB, free: 3.617 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 5.52e-05/0.3409, allocations: 35.86 kB / 1.178 GB, free: 3.582 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.000126/0.3411, allocations: 63.72 kB / 1.178 GB, free: 3.52 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.3411, allocations: 0 / 1.178 GB, free: 3.52 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.653e-06/0.3411, allocations: 0 / 1.178 GB, free: 3.52 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.97e-06/0.3411, allocations: 0 / 1.178 GB, free: 3.52 MB / 0.92 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.0005877/0.3417, allocations: 375.2 kB / 1.178 GB, free: 3.105 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.604e-05/0.3417, allocations: 8.031 kB / 1.178 GB, free: 3.098 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.369e-05/0.3418, allocations: 8.891 kB / 1.179 GB, free: 3.09 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001476/0.3419, allocations: 192.2 kB / 1.179 GB, free: 2.863 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.08e-05/0.342, allocations: 4.375 kB / 1.179 GB, free: 2.859 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.682e-05/0.342, allocations: 4.375 kB / 1.179 GB, free: 2.855 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001999/0.3422, allocations: 85.95 kB / 1.179 GB, free: 2.766 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.428e-06/0.3422, allocations: 0 / 1.179 GB, free: 2.766 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.448e-05/0.3422, allocations: 3.984 kB / 1.179 GB, free: 2.762 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.593e-06/0.3422, allocations: 4 kB / 1.179 GB, free: 2.758 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001301/0.3424, allocations: 43.91 kB / 1.179 GB, free: 2.715 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005694/0.343, allocations: 316.8 kB / 1.179 GB, free: 2.355 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002711/0.3432, allocations: 98.55 kB / 1.179 GB, free: 2.25 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001079/0.3434, allocations: 44.83 kB / 1.179 GB, free: 2.203 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.786e-05/0.3434, allocations: 4 kB / 1.179 GB, free: 2.199 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002607/0.3437, allocations: 119.3 kB / 1.179 GB, free: 2.07 MB / 0.92 GB Notification: Performance of pre-optimization done (n=11): time 1.392e-06/0.3437, allocations: 0 / 1.179 GB, free: 2.07 MB / 0.92 GB Notification: Performance of matching and sorting (n=11): time 0.000389/0.3441, allocations: 165.6 kB / 1.18 GB, free: 1.902 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.769e-05/0.3441, allocations: 55.39 kB / 1.18 GB, free: 1.836 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.965e-05/0.3442, allocations: 113.8 kB / 1.18 GB, free: 1.715 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.196e-05/0.3442, allocations: 37.64 kB / 1.18 GB, free: 1.672 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 5.862e-05/0.3443, allocations: 88.38 kB / 1.18 GB, free: 1.582 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 3.704e-05/0.3443, allocations: 39.81 kB / 1.18 GB, free: 1.543 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.913e-05/0.3444, allocations: 29.66 kB / 1.18 GB, free: 1.508 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001358/0.3445, allocations: 326.8 kB / 1.18 GB, free: 1.18 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.278e-05/0.3446, allocations: 27.98 kB / 1.18 GB, free: 1.152 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.743e-05/0.3447, allocations: 45.7 kB / 1.18 GB, free: 1.102 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001407/0.3449, allocations: 70.11 kB / 1.18 GB, free: 1.027 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.3449, allocations: 0 / 1.18 GB, free: 1.027 MB / 0.92 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002125/0.3451, allocations: 113.5 kB / 1.18 GB, free: 0.9102 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.711e-05/0.3451, allocations: 8 kB / 1.18 GB, free: 0.9023 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/0.3451, allocations: 3.938 kB / 1.18 GB, free: 0.8984 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.767e-05/0.3452, allocations: 4 kB / 1.18 GB, free: 0.8945 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.342e-05/0.3452, allocations: 15.92 kB / 1.18 GB, free: 0.8789 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.59e-06/0.3452, allocations: 4 kB / 1.18 GB, free: 0.875 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.929e-05/0.3453, allocations: 15.98 kB / 1.18 GB, free: 0.8594 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.067e-05/0.3454, allocations: 4 kB / 1.18 GB, free: 0.8555 MB / 0.92 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.581e-05/0.3455, allocations: 120.1 kB / 1.181 GB, free: 0.7305 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.857e-05/0.3455, allocations: 7.953 kB / 1.181 GB, free: 0.7227 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.585e-05/0.3455, allocations: 16.36 kB / 1.181 GB, free: 0.707 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.147e-06/0.3455, allocations: 4 kB / 1.181 GB, free: 0.7031 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.3455, allocations: 0 / 1.181 GB, free: 0.7031 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.3455, allocations: 0 / 1.181 GB, free: 0.7031 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000173/0.3457, allocations: 197.5 kB / 1.181 GB, free: 472 kB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.3457, allocations: 0 / 1.181 GB, free: 472 kB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.584e-05/0.3458, allocations: 15.98 kB / 1.181 GB, free: 456 kB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.699e-06/0.3458, allocations: 0 / 1.181 GB, free: 456 kB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.556e-05/0.3458, allocations: 7.938 kB / 1.181 GB, free: 448 kB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.3458, allocations: 0 / 1.181 GB, free: 448 kB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.3459, allocations: 0 / 1.181 GB, free: 448 kB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000389/0.3462, allocations: 220.9 kB / 1.181 GB, free: 208 kB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.799e-05/0.3463, allocations: 85.09 kB / 1.181 GB, free: 104 kB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.331e-05/0.3463, allocations: 4 kB / 1.181 GB, free: 100 kB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.842e-05/0.3464, allocations: 7.984 kB / 1.181 GB, free: 92 kB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.023e-05/0.3465, allocations: 15.98 kB / 1.181 GB, free: 76 kB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.221e-05/0.3465, allocations: 7.984 kB / 1.181 GB, free: 68 kB / 0.92 GB Notification: Performance of sorting global known variables: time 6.653e-05/0.3466, allocations: 83.28 kB / 1.181 GB, free: 15.98 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3466, allocations: 0 / 1.181 GB, free: 15.98 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.000195/0.3468, allocations: 19.98 kB / 1.181 GB, free: 15.96 MB / 0.9356 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.000134/0.3469, allocations: 111.2 kB / 1.181 GB, free: 15.85 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002515/0.3472, allocations: 87.89 kB / 1.181 GB, free: 15.76 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3472, allocations: 3.938 kB / 1.181 GB, free: 15.76 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001525/0.3473, allocations: 75.89 kB / 1.182 GB, free: 15.68 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001961/0.3475, allocations: 14.17 kB / 1.182 GB, free: 15.67 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005244/0.3481, allocations: 294.8 kB / 1.182 GB, free: 15.35 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003124/0.3484, allocations: 0.6924 MB / 1.183 GB, free: 14.63 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.286e-05/0.3484, allocations: 19.44 kB / 1.183 GB, free: 14.61 MB / 0.9356 GB Notification: Performance of SimCode: time 2.1e-07/0.3485, allocations: 0 / 1.183 GB, free: 14.61 MB / 0.9356 GB Notification: Performance of Templates: time 0.00273/0.3512, allocations: 1.13 MB / 1.184 GB, free: 13.48 MB / 0.9356 GB " [Timeout remaining time 300] make -j1 -f Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.makefile [Timeout 300] (rm -f Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & ./Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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: 10.630951559054665]