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.001782/0.001782, allocations: 104.3 kB / 19.7 MB, free: 2.156 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.002167/0.002167, allocations: 212 kB / 22.98 MB, free: 4.984 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.491/1.491, allocations: 230.6 MB / 256.8 MB, free: 7.801 MB / 206.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 3.293/3.293, allocations: 0.49 GB / 0.7959 GB, free: 35.41 MB / 0.6231 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.002158/0.002158, allocations: 70.83 kB / 1.155 GB, free: 25.05 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3449/0.3471, allocations: 176.1 MB / 1.327 GB, free: 0.8516 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002938/0.35, allocations: 1.589 MB / 1.329 GB, free: 15.25 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.0009429/0.351, allocations: 490.8 kB / 1.329 GB, free: 14.77 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.239e-05/0.351, allocations: 0 / 1.329 GB, free: 14.77 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 2.617e-05/0.351, allocations: 3.938 kB / 1.329 GB, free: 14.77 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 7.375e-05/0.3511, allocations: 15.91 kB / 1.329 GB, free: 14.75 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002499/0.3514, allocations: 43.91 kB / 1.329 GB, free: 14.71 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001369/0.3515, allocations: 75.75 kB / 1.329 GB, free: 14.63 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 8.084e-05/0.3516, allocations: 8 kB / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001244/0.3517, allocations: 35.86 kB / 1.329 GB, free: 14.59 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 7.661e-05/0.3518, allocations: 31.89 kB / 1.329 GB, free: 14.56 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.976e-05/0.3518, allocations: 8 kB / 1.329 GB, free: 14.55 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 4.77e-05/0.3519, allocations: 12 kB / 1.329 GB, free: 14.54 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.669e-05/0.3519, allocations: 19.92 kB / 1.329 GB, free: 14.52 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 4.242e-05/0.3519, allocations: 23.92 kB / 1.329 GB, free: 14.5 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001506/0.3521, allocations: 67.7 kB / 1.329 GB, free: 14.43 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.3521, allocations: 4 kB / 1.329 GB, free: 14.43 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.402e-06/0.3521, allocations: 0 / 1.329 GB, free: 14.43 MB / 1.029 GB Notification: Performance of Transformations before backend: time 4.949e-06/0.3521, allocations: 0 / 1.329 GB, free: 14.43 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.000575/0.3527, allocations: 310 kB / 1.33 GB, free: 14.09 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.46e-05/0.3527, allocations: 12.03 kB / 1.33 GB, free: 14.08 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001566/0.3528, allocations: 16.88 kB / 1.33 GB, free: 14.07 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002259/0.3531, allocations: 122.5 kB / 1.33 GB, free: 13.92 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.032e-05/0.3531, allocations: 4.375 kB / 1.33 GB, free: 13.92 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.559e-05/0.3531, allocations: 8.375 kB / 1.33 GB, free: 13.91 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002024/0.3533, allocations: 97.86 kB / 1.33 GB, free: 13.81 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.587e-06/0.3533, allocations: 0 / 1.33 GB, free: 13.81 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.248e-05/0.3533, allocations: 0 / 1.33 GB, free: 13.81 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.713e-06/0.3534, allocations: 4 kB / 1.33 GB, free: 13.8 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001356/0.3535, allocations: 43.91 kB / 1.33 GB, free: 13.76 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005189/0.354, allocations: 256.5 kB / 1.33 GB, free: 13.48 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002621/0.3543, allocations: 90.52 kB / 1.33 GB, free: 13.38 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.7e-05/0.3544, allocations: 40.83 kB / 1.33 GB, free: 13.34 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.68e-05/0.3544, allocations: 0 / 1.33 GB, free: 13.34 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002489/0.3546, allocations: 119.2 kB / 1.331 GB, free: 13.21 MB / 1.029 GB Notification: Performance of pre-optimization done (n=11): time 1.483e-06/0.3546, allocations: 0 / 1.331 GB, free: 13.21 MB / 1.029 GB Notification: Performance of matching and sorting (n=11): time 0.0004067/0.355, allocations: 165.6 kB / 1.331 GB, free: 13.04 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.039e-05/0.3551, allocations: 55.41 kB / 1.331 GB, free: 12.98 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.591e-05/0.3552, allocations: 121.8 kB / 1.331 GB, free: 12.85 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.233e-05/0.3552, allocations: 25.7 kB / 1.331 GB, free: 12.82 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.116e-05/0.3553, allocations: 92.31 kB / 1.331 GB, free: 12.72 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.13e-05/0.3553, allocations: 35.88 kB / 1.331 GB, free: 12.69 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.309e-05/0.3554, allocations: 29.7 kB / 1.331 GB, free: 12.65 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001452/0.3555, allocations: 318.8 kB / 1.331 GB, free: 12.33 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.85e-05/0.3556, allocations: 27.98 kB / 1.331 GB, free: 12.3 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.655e-05/0.3557, allocations: 53.56 kB / 1.331 GB, free: 12.25 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000146/0.3558, allocations: 70.02 kB / 1.331 GB, free: 12.18 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.3558, allocations: 4 kB / 1.331 GB, free: 12.17 MB / 1.029 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002305/0.3561, allocations: 113.5 kB / 1.332 GB, free: 12.05 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.448e-05/0.3561, allocations: 4 kB / 1.332 GB, free: 12.05 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.189e-06/0.3561, allocations: 0 / 1.332 GB, free: 12.05 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.363e-05/0.3561, allocations: 3.938 kB / 1.332 GB, free: 12.05 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.319e-05/0.3562, allocations: 19.94 kB / 1.332 GB, free: 12.03 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.93e-06/0.3562, allocations: 0 / 1.332 GB, free: 12.03 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.6e-05/0.3563, allocations: 7.984 kB / 1.332 GB, free: 12.02 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.113e-05/0.3563, allocations: 4 kB / 1.332 GB, free: 12.02 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 0.0001012/0.3564, allocations: 131.8 kB / 1.332 GB, free: 11.88 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.958e-05/0.3564, allocations: 7.953 kB / 1.332 GB, free: 11.87 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.291e-05/0.3564, allocations: 12.38 kB / 1.332 GB, free: 11.86 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.3564, allocations: 0 / 1.332 GB, free: 11.86 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.3564, allocations: 384 / 1.332 GB, free: 11.86 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.3564, allocations: 3.938 kB / 1.332 GB, free: 11.85 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001373/0.3566, allocations: 137.2 kB / 1.332 GB, free: 11.69 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.3566, allocations: 0 / 1.332 GB, free: 11.69 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.881e-05/0.3567, allocations: 15.92 kB / 1.332 GB, free: 11.67 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.3567, allocations: 0 / 1.332 GB, free: 11.67 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.405e-05/0.3567, allocations: 8 kB / 1.332 GB, free: 11.66 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.3567, allocations: 0 / 1.332 GB, free: 11.66 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.3567, allocations: 0 / 1.332 GB, free: 11.66 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004139/0.3571, allocations: 224.9 kB / 1.332 GB, free: 11.43 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.525e-05/0.3571, allocations: 11.92 kB / 1.332 GB, free: 11.41 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.591e-05/0.3571, allocations: 4.031 kB / 1.332 GB, free: 11.41 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.165e-05/0.3572, allocations: 11.98 kB / 1.332 GB, free: 11.4 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.009e-05/0.3573, allocations: 15.91 kB / 1.332 GB, free: 11.38 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.513e-05/0.3573, allocations: 8 kB / 1.332 GB, free: 11.38 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.322e-05/0.3573, allocations: 95.33 kB / 1.332 GB, free: 11.28 MB / 1.029 GB Notification: Performance of sort global known variables: time 6e-08/0.3573, allocations: 0 / 1.332 GB, free: 11.28 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002188/0.3576, allocations: 16 kB / 1.332 GB, free: 11.27 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.0001208/0.3577, allocations: 107.2 kB / 1.332 GB, free: 11.15 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002353/0.3579, allocations: 87.91 kB / 1.332 GB, free: 11.07 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.3579, allocations: 0 / 1.332 GB, free: 11.07 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001167/0.358, allocations: 51.91 kB / 1.333 GB, free: 11.02 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002169/0.3582, allocations: 19.92 kB / 1.333 GB, free: 11 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000537/0.3588, allocations: 253.7 kB / 1.333 GB, free: 10.72 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.398e-05/0.3589, allocations: 75.44 kB / 1.333 GB, free: 10.63 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.979e-05/0.3589, allocations: 12.64 kB / 1.333 GB, free: 10.62 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.978e-05/0.3589, allocations: 15.44 kB / 1.333 GB, free: 10.6 MB / 1.029 GB Notification: Performance of SimCode: time 3.01e-07/0.3589, allocations: 0 / 1.333 GB, free: 10.6 MB / 1.029 GB Notification: Performance of Templates: time 0.004089/0.363, allocations: 1.161 MB / 1.334 GB, free: 9.457 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 -s cvode -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.189435460997629]