Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001834/0.001834, allocations: 100.3 kB / 19.7 MB, free: 2.012 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.002217/0.002217, allocations: 222.6 kB / 23 MB, free: 4.91 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.497/1.497, allocations: 230.6 MB / 256.8 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.244/3.244, allocations: 0.5107 GB / 0.8166 GB, free: 17.86 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_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.002093/0.002093, allocations: 66.98 kB / 1.187 GB, free: 13.57 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3492/0.3513, allocations: 181.9 MB / 1.365 GB, free: 13.62 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.00315/0.3544, allocations: 1.58 MB / 1.366 GB, free: 12.03 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0009216/0.3553, allocations: 491.8 kB / 1.367 GB, free: 11.55 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.354e-05/0.3554, allocations: 0 / 1.367 GB, free: 11.55 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 3.058e-05/0.3554, allocations: 3.938 kB / 1.367 GB, free: 11.54 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 7.866e-05/0.3555, allocations: 15.86 kB / 1.367 GB, free: 11.53 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.000256/0.3558, allocations: 43.89 kB / 1.367 GB, free: 11.48 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001336/0.3559, allocations: 71.83 kB / 1.367 GB, free: 11.41 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 9.26e-05/0.356, allocations: 11.98 kB / 1.367 GB, free: 11.4 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001366/0.3561, allocations: 31.92 kB / 1.367 GB, free: 11.37 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 8.022e-05/0.3562, allocations: 31.83 kB / 1.367 GB, free: 11.34 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.373e-05/0.3562, allocations: 8 kB / 1.367 GB, free: 11.33 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 4.741e-05/0.3563, allocations: 12 kB / 1.367 GB, free: 11.32 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 2.419e-05/0.3563, allocations: 15.92 kB / 1.367 GB, free: 11.3 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 4.559e-05/0.3563, allocations: 19.94 kB / 1.367 GB, free: 11.29 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001569/0.3565, allocations: 75.64 kB / 1.367 GB, free: 11.21 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.3565, allocations: 4 kB / 1.367 GB, free: 11.21 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.823e-06/0.3565, allocations: 0 / 1.367 GB, free: 11.21 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.491e-06/0.3565, allocations: 0 / 1.367 GB, free: 11.21 MB / 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.0005973/0.3571, allocations: 306.1 kB / 1.367 GB, free: 10.88 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.729e-05/0.3572, allocations: 12.03 kB / 1.367 GB, free: 10.87 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001464/0.3573, allocations: 12.92 kB / 1.367 GB, free: 10.86 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000228/0.3575, allocations: 130.5 kB / 1.367 GB, free: 10.7 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.252e-05/0.3575, allocations: 4.375 kB / 1.367 GB, free: 10.7 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.592e-05/0.3576, allocations: 8.375 kB / 1.367 GB, free: 10.69 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001917/0.3578, allocations: 89.89 kB / 1.368 GB, free: 10.6 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/0.3578, allocations: 0 / 1.368 GB, free: 10.6 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.151e-05/0.3578, allocations: 0 / 1.368 GB, free: 10.6 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.3578, allocations: 0 / 1.368 GB, free: 10.6 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001313/0.3579, allocations: 47.91 kB / 1.368 GB, free: 10.55 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005121/0.3584, allocations: 260.3 kB / 1.368 GB, free: 10.27 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002555/0.3587, allocations: 82.48 kB / 1.368 GB, free: 10.18 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.684e-05/0.3588, allocations: 36.84 kB / 1.368 GB, free: 10.14 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.593e-05/0.3588, allocations: 0 / 1.368 GB, free: 10.14 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002415/0.359, allocations: 119.3 kB / 1.368 GB, free: 10.01 MB / 1.061 GB Notification: Performance of pre-optimization done (n=11): time 1.733e-06/0.359, allocations: 0 / 1.368 GB, free: 10.01 MB / 1.061 GB Notification: Performance of matching and sorting (n=11): time 0.0004365/0.3595, allocations: 173.6 kB / 1.368 GB, free: 9.832 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.465e-05/0.3595, allocations: 55.41 kB / 1.368 GB, free: 9.766 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.85e-05/0.3596, allocations: 117.8 kB / 1.368 GB, free: 9.641 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 3.143e-05/0.3597, allocations: 29.7 kB / 1.368 GB, free: 9.605 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 6.091e-05/0.3597, allocations: 88.38 kB / 1.368 GB, free: 9.512 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 4.737e-05/0.3598, allocations: 39.81 kB / 1.369 GB, free: 9.473 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.099e-05/0.3598, allocations: 25.72 kB / 1.369 GB, free: 9.441 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001588/0.36, allocations: 318.8 kB / 1.369 GB, free: 9.121 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.706e-05/0.3601, allocations: 39.98 kB / 1.369 GB, free: 9.082 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.966e-05/0.3602, allocations: 45.7 kB / 1.369 GB, free: 9.031 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001453/0.3603, allocations: 73.98 kB / 1.369 GB, free: 8.953 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.3603, allocations: 4 kB / 1.369 GB, free: 8.949 MB / 1.061 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002278/0.3605, allocations: 117.5 kB / 1.369 GB, free: 8.828 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.601e-05/0.3605, allocations: 4 kB / 1.369 GB, free: 8.824 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.3605, allocations: 0 / 1.369 GB, free: 8.824 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.431e-05/0.3606, allocations: 0 / 1.369 GB, free: 8.824 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.731e-05/0.3606, allocations: 19.92 kB / 1.369 GB, free: 8.805 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.3606, allocations: 0 / 1.369 GB, free: 8.805 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.508e-05/0.3607, allocations: 15.94 kB / 1.369 GB, free: 8.789 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.133e-05/0.3607, allocations: 4 kB / 1.369 GB, free: 8.785 MB / 1.061 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.0001255/0.3609, allocations: 132.5 kB / 1.369 GB, free: 8.648 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.822e-05/0.3609, allocations: 7.953 kB / 1.369 GB, free: 8.641 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.289e-05/0.3609, allocations: 12.38 kB / 1.369 GB, free: 8.625 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.3609, allocations: 3.984 kB / 1.369 GB, free: 8.621 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.3609, allocations: 384 / 1.369 GB, free: 8.621 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.3609, allocations: 0 / 1.369 GB, free: 8.621 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001529/0.3611, allocations: 133.2 kB / 1.369 GB, free: 8.461 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.3611, allocations: 0 / 1.369 GB, free: 8.461 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.408e-05/0.3612, allocations: 11.94 kB / 1.369 GB, free: 8.449 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.3612, allocations: 0 / 1.369 GB, free: 8.449 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.324e-05/0.3612, allocations: 11.98 kB / 1.369 GB, free: 8.438 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.3612, allocations: 3.984 kB / 1.369 GB, free: 8.434 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.3612, allocations: 0 / 1.369 GB, free: 8.434 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004301/0.3616, allocations: 220.8 kB / 1.37 GB, free: 8.199 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.456e-05/0.3616, allocations: 7.984 kB / 1.37 GB, free: 8.191 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.712e-05/0.3617, allocations: 7.984 kB / 1.37 GB, free: 8.184 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7e-05/0.3617, allocations: 4 kB / 1.37 GB, free: 8.18 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.621e-05/0.3618, allocations: 15.97 kB / 1.37 GB, free: 8.164 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.365e-05/0.3618, allocations: 7.984 kB / 1.37 GB, free: 8.156 MB / 1.061 GB Notification: Performance of sorting global known variables: time 5.976e-05/0.3619, allocations: 91.34 kB / 1.37 GB, free: 8.066 MB / 1.061 GB Notification: Performance of sort global known variables: time 6e-08/0.3619, allocations: 0 / 1.37 GB, free: 8.066 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002088/0.3621, allocations: 27.92 kB / 1.37 GB, free: 8.039 MB / 1.061 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.0001421/0.3622, allocations: 99.25 kB / 1.37 GB, free: 7.934 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002264/0.3624, allocations: 83.89 kB / 1.37 GB, free: 7.852 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.3624, allocations: 0 / 1.37 GB, free: 7.852 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001191/0.3626, allocations: 55.84 kB / 1.37 GB, free: 7.797 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002078/0.3628, allocations: 15.94 kB / 1.37 GB, free: 7.781 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005683/0.3633, allocations: 283.7 kB / 1.37 GB, free: 7.473 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.203e-05/0.3634, allocations: 83.27 kB / 1.37 GB, free: 7.371 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.571e-05/0.3635, allocations: 15.44 kB / 1.37 GB, free: 7.355 MB / 1.061 GB Notification: Performance of SimCode: time 2.6e-07/0.3635, allocations: 0 / 1.37 GB, free: 7.355 MB / 1.061 GB Notification: Performance of Templates: time 0.002841/0.3663, allocations: 1.175 MB / 1.372 GB, free: 6.184 MB / 1.061 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & ./Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 11.457888225093484]