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.001322/0.001322, allocations: 81.78 kB / 19.76 MB, free: 2.027 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.001474/0.001474, allocations: 157.8 kB / 23.01 MB, free: 4.961 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.446/1.446, allocations: 177.2 MB / 203.4 MB, free: 8.938 MB / 190.1 MB " [Timeout remaining time 178] 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.894/2.894, allocations: 377.9 MB / 0.6228 GB, free: 12.56 MB / 0.5919 GB " [Timeout remaining time 176] 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.00214/0.00214, allocations: 67.89 kB / 0.982 GB, free: 12.2 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.019/1.022, allocations: 176.1 MB / 1.154 GB, free: 33.34 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.0027/1.024, allocations: 1.586 MB / 1.155 GB, free: 32.25 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.001058/1.025, allocations: 473.3 kB / 1.156 GB, free: 31.95 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.753e-05/1.025, allocations: 2.781 kB / 1.156 GB, free: 31.95 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 4.086e-05/1.025, allocations: 3.938 kB / 1.156 GB, free: 31.95 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 8.37e-05/1.026, allocations: 19.23 kB / 1.156 GB, free: 31.93 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003166/1.026, allocations: 38 kB / 1.156 GB, free: 31.91 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.0001648/1.026, allocations: 76.39 kB / 1.156 GB, free: 31.87 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000141/1.026, allocations: 12.42 kB / 1.156 GB, free: 31.87 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001751/1.026, allocations: 34.55 kB / 1.156 GB, free: 31.85 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001093/1.026, allocations: 37.2 kB / 1.156 GB, free: 31.83 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 2.121e-05/1.026, allocations: 5.812 kB / 1.156 GB, free: 31.83 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 5.905e-05/1.027, allocations: 8.719 kB / 1.156 GB, free: 31.83 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 2.807e-05/1.027, allocations: 17.52 kB / 1.156 GB, free: 31.82 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 5.366e-05/1.027, allocations: 33.14 kB / 1.156 GB, free: 31.8 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0001917/1.027, allocations: 68.92 kB / 1.156 GB, free: 31.78 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/1.027, allocations: 0 / 1.156 GB, free: 31.78 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.603e-06/1.027, allocations: 0 / 1.156 GB, free: 31.78 MB / 1.076 GB Notification: Performance of Transformations before backend: time 8.636e-06/1.027, allocations: 0 / 1.156 GB, free: 31.78 MB / 1.076 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.0005621/1.027, allocations: 299.5 kB / 1.157 GB, free: 31.5 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 4.116e-05/1.027, allocations: 11.19 kB / 1.157 GB, free: 31.5 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001636/1.028, allocations: 20.09 kB / 1.157 GB, free: 31.49 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001996/1.028, allocations: 134.3 kB / 1.157 GB, free: 31.35 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.238e-05/1.028, allocations: 3.188 kB / 1.157 GB, free: 31.35 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.754e-05/1.028, allocations: 9.219 kB / 1.157 GB, free: 31.35 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000175/1.028, allocations: 85.5 kB / 1.157 GB, free: 31.29 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/1.028, allocations: 6.125 kB / 1.157 GB, free: 31.29 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.277e-05/1.028, allocations: 0 / 1.157 GB, free: 31.29 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/1.028, allocations: 0 / 1.157 GB, free: 31.29 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001177/1.028, allocations: 43.19 kB / 1.157 GB, free: 31.28 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004355/1.029, allocations: 250.6 kB / 1.157 GB, free: 31.05 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002391/1.029, allocations: 89.55 kB / 1.157 GB, free: 31 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.687e-05/1.029, allocations: 36.83 kB / 1.157 GB, free: 30.98 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 1.353e-05/1.029, allocations: 2.969 kB / 1.157 GB, free: 30.98 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002034/1.029, allocations: 119.5 kB / 1.157 GB, free: 30.91 MB / 1.076 GB Notification: Performance of pre-optimization done (n=11): time 1.503e-06/1.029, allocations: 0 / 1.157 GB, free: 30.91 MB / 1.076 GB Notification: Performance of matching and sorting (n=11): time 0.0003541/1.03, allocations: 171.9 kB / 1.157 GB, free: 30.84 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.955e-05/1.03, allocations: 58.25 kB / 1.158 GB, free: 30.77 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.062e-05/1.03, allocations: 119 kB / 1.158 GB, free: 30.66 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 1.326e-05/1.03, allocations: 32.39 kB / 1.158 GB, free: 30.62 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 3.326e-05/1.03, allocations: 87.19 kB / 1.158 GB, free: 30.54 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 2.854e-05/1.03, allocations: 29.72 kB / 1.158 GB, free: 30.52 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.584e-05/1.03, allocations: 29.09 kB / 1.158 GB, free: 30.49 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 5.506e-05/1.03, allocations: 317.3 kB / 1.158 GB, free: 30.18 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.876e-05/1.03, allocations: 30.83 kB / 1.158 GB, free: 30.17 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.586e-05/1.03, allocations: 58.62 kB / 1.158 GB, free: 30.13 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001192/1.03, allocations: 68.03 kB / 1.158 GB, free: 30.09 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/1.03, allocations: 0 / 1.158 GB, free: 30.09 MB / 1.076 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001821/1.03, allocations: 115.8 kB / 1.158 GB, free: 30.03 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.434e-05/1.03, allocations: 5.906 kB / 1.158 GB, free: 30.03 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.489e-06/1.03, allocations: 0 / 1.158 GB, free: 30.03 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.697e-05/1.03, allocations: 2.594 kB / 1.158 GB, free: 30.03 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.139e-05/1.03, allocations: 11.16 kB / 1.158 GB, free: 30.03 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.172e-06/1.03, allocations: 2.781 kB / 1.158 GB, free: 30.03 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.524e-05/1.03, allocations: 14.11 kB / 1.158 GB, free: 30.02 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.008e-05/1.03, allocations: 2.875 kB / 1.158 GB, free: 30.02 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 6.855e-05/1.03, allocations: 126.7 kB / 1.159 GB, free: 29.9 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.663e-05/1.031, allocations: 12.61 kB / 1.159 GB, free: 29.89 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.961e-05/1.031, allocations: 15.09 kB / 1.159 GB, free: 29.88 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/1.031, allocations: 0 / 1.159 GB, free: 29.88 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/1.031, allocations: 0 / 1.159 GB, free: 29.88 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/1.031, allocations: 0 / 1.159 GB, free: 29.88 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001103/1.031, allocations: 136.8 kB / 1.159 GB, free: 29.74 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/1.031, allocations: 4 kB / 1.159 GB, free: 29.73 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.229e-05/1.031, allocations: 15.58 kB / 1.159 GB, free: 29.73 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/1.031, allocations: 0 / 1.159 GB, free: 29.73 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.351e-05/1.031, allocations: 2.875 kB / 1.159 GB, free: 29.73 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/1.031, allocations: 3.938 kB / 1.159 GB, free: 29.73 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/1.031, allocations: 7.312 kB / 1.159 GB, free: 29.72 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000342/1.031, allocations: 216 kB / 1.159 GB, free: 29.6 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 1.139e-05/1.031, allocations: 6.422 kB / 1.159 GB, free: 29.6 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.698e-05/1.031, allocations: 10.03 kB / 1.159 GB, free: 29.59 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.972e-05/1.031, allocations: 12.58 kB / 1.159 GB, free: 29.59 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.107e-05/1.031, allocations: 13.55 kB / 1.159 GB, free: 29.59 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.109e-05/1.031, allocations: 5.375 kB / 1.159 GB, free: 29.59 MB / 1.076 GB Notification: Performance of sorting global known variables: time 3.44e-05/1.031, allocations: 91.72 kB / 1.159 GB, free: 29.5 MB / 1.076 GB Notification: Performance of sort global known variables: time 7e-08/1.031, allocations: 2.656 kB / 1.159 GB, free: 29.5 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0002071/1.032, allocations: 21.38 kB / 1.159 GB, free: 29.5 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.0001078/1.032, allocations: 104 kB / 1.159 GB, free: 29.41 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0002163/1.032, allocations: 88.67 kB / 1.159 GB, free: 29.38 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/1.032, allocations: 4 kB / 1.159 GB, free: 29.38 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0001015/1.032, allocations: 53.98 kB / 1.159 GB, free: 29.36 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00022/1.032, allocations: 16.84 kB / 1.159 GB, free: 29.35 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005252/1.033, allocations: 265.4 kB / 1.16 GB, free: 29.15 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.414e-05/1.033, allocations: 82.22 kB / 1.16 GB, free: 29.07 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 4.451e-05/1.033, allocations: 7.047 kB / 1.16 GB, free: 29.07 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.815e-05/1.033, allocations: 13.56 kB / 1.16 GB, free: 29.06 MB / 1.076 GB Notification: Performance of SimCode: time 4.1e-07/1.033, allocations: 3.938 kB / 1.16 GB, free: 29.06 MB / 1.076 GB Notification: Performance of Templates: time 0.004154/1.037, allocations: 1.113 MB / 1.161 GB, free: 28.93 MB / 1.076 GB " [Timeout remaining time 299] 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 -s ida -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.310754705918953]