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.001859/0.001859, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.002433/0.002433, allocations: 212 kB / 22.99 MB, free: 4.945 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.461/1.461, allocations: 230.6 MB / 256.8 MB, free: 7.816 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.16/3.16, allocations: 0.4892 GB / 0.7951 GB, free: 35.62 MB / 0.6231 GB " [Timeout remaining time 177] 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.002111/0.002111, allocations: 69.03 kB / 1.154 GB, free: 25.49 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3491/0.3512, allocations: 176.1 MB / 1.326 GB, free: 1.875 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.003533/0.3548, allocations: 1.589 MB / 1.328 GB, free: 284 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.00116/0.3559, allocations: 474.9 kB / 1.328 GB, free: 15.81 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.177e-05/0.356, allocations: 4 kB / 1.328 GB, free: 15.8 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 4.171e-05/0.3561, allocations: 11.92 kB / 1.328 GB, free: 15.79 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 8.912e-05/0.3562, allocations: 7.875 kB / 1.328 GB, free: 15.79 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003235/0.3565, allocations: 43.89 kB / 1.328 GB, free: 15.74 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001864/0.3567, allocations: 79.77 kB / 1.328 GB, free: 15.66 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001139/0.3568, allocations: 4 kB / 1.328 GB, free: 15.66 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001775/0.357, allocations: 39.84 kB / 1.328 GB, free: 15.62 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001028/0.3571, allocations: 27.91 kB / 1.329 GB, free: 15.59 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.037e-05/0.3571, allocations: 4 kB / 1.329 GB, free: 15.59 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 5.886e-05/0.3571, allocations: 16 kB / 1.329 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 3.321e-05/0.3572, allocations: 19.91 kB / 1.329 GB, free: 15.55 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 4.967e-05/0.3572, allocations: 23.92 kB / 1.329 GB, free: 15.53 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001783/0.3574, allocations: 75.7 kB / 1.329 GB, free: 15.46 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.3574, allocations: 0 / 1.329 GB, free: 15.46 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.944e-06/0.3574, allocations: 0 / 1.329 GB, free: 15.46 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.131e-06/0.3574, allocations: 0 / 1.329 GB, free: 15.46 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.0006392/0.358, allocations: 303.5 kB / 1.329 GB, free: 15.13 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/0.3581, allocations: 8.031 kB / 1.329 GB, free: 15.12 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001672/0.3583, allocations: 24.88 kB / 1.329 GB, free: 15.1 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002702/0.3585, allocations: 126.4 kB / 1.329 GB, free: 14.95 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.653e-05/0.3586, allocations: 8.375 kB / 1.329 GB, free: 14.95 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.885e-05/0.3586, allocations: 12.36 kB / 1.329 GB, free: 14.93 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002077/0.3588, allocations: 85.95 kB / 1.329 GB, free: 14.84 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.3588, allocations: 0 / 1.329 GB, free: 14.84 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.415e-05/0.3588, allocations: 0 / 1.329 GB, free: 14.84 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.499e-06/0.3588, allocations: 0 / 1.329 GB, free: 14.84 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001388/0.359, allocations: 47.91 kB / 1.329 GB, free: 14.8 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005642/0.3595, allocations: 260.4 kB / 1.329 GB, free: 14.51 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002748/0.3598, allocations: 90.47 kB / 1.33 GB, free: 14.41 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.52e-05/0.3599, allocations: 28.84 kB / 1.33 GB, free: 14.38 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.878e-05/0.3599, allocations: 4 kB / 1.33 GB, free: 14.38 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002445/0.3601, allocations: 119.3 kB / 1.33 GB, free: 14.25 MB / 1.029 GB Notification: Performance of pre-optimization done (n=11): time 1.412e-06/0.3601, allocations: 0 / 1.33 GB, free: 14.25 MB / 1.029 GB Notification: Performance of matching and sorting (n=11): time 0.0004451/0.3606, allocations: 173.5 kB / 1.33 GB, free: 14.07 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.414e-05/0.3606, allocations: 51.41 kB / 1.33 GB, free: 14.01 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.879e-05/0.3607, allocations: 113.8 kB / 1.33 GB, free: 13.89 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.039e-05/0.3608, allocations: 33.7 kB / 1.33 GB, free: 13.85 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.493e-05/0.3608, allocations: 88.36 kB / 1.33 GB, free: 13.76 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.79e-05/0.3609, allocations: 27.75 kB / 1.33 GB, free: 13.73 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.259e-05/0.3609, allocations: 29.7 kB / 1.33 GB, free: 13.7 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001628/0.3611, allocations: 322.8 kB / 1.331 GB, free: 13.38 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.376e-05/0.3612, allocations: 36.3 kB / 1.331 GB, free: 13.34 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.09e-05/0.3613, allocations: 44.45 kB / 1.331 GB, free: 13.29 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001493/0.3614, allocations: 74.02 kB / 1.331 GB, free: 13.21 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.3614, allocations: 0 / 1.331 GB, free: 13.21 MB / 1.029 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002332/0.3617, allocations: 125.4 kB / 1.331 GB, free: 13.09 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/0.3617, allocations: 4 kB / 1.331 GB, free: 13.08 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.3617, allocations: 4 kB / 1.331 GB, free: 13.08 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.496e-05/0.3617, allocations: 0 / 1.331 GB, free: 13.08 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.192e-05/0.3618, allocations: 19.98 kB / 1.331 GB, free: 13.06 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.192e-05/0.3618, allocations: 7.938 kB / 1.331 GB, free: 13.05 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.043e-05/0.3619, allocations: 4 kB / 1.331 GB, free: 13.05 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.081e-05/0.3619, allocations: 4 kB / 1.331 GB, free: 13.04 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.0001181/0.362, allocations: 127.8 kB / 1.331 GB, free: 12.91 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.896e-05/0.362, allocations: 7.953 kB / 1.331 GB, free: 12.9 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.13e-05/0.362, allocations: 8.375 kB / 1.331 GB, free: 12.89 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.362, allocations: 4 kB / 1.331 GB, free: 12.89 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.3621, allocations: 0 / 1.331 GB, free: 12.89 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.928e-06/0.3621, allocations: 4 kB / 1.331 GB, free: 12.88 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001505/0.3622, allocations: 137.4 kB / 1.331 GB, free: 12.72 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.3622, allocations: 0 / 1.331 GB, free: 12.72 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.551e-05/0.3623, allocations: 11.98 kB / 1.331 GB, free: 12.71 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.3623, allocations: 0 / 1.331 GB, free: 12.71 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.591e-05/0.3623, allocations: 4 kB / 1.331 GB, free: 12.7 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.3623, allocations: 0 / 1.331 GB, free: 12.7 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.3623, allocations: 7.938 kB / 1.331 GB, free: 12.7 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004166/0.3627, allocations: 216.9 kB / 1.331 GB, free: 12.46 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.869e-05/0.3628, allocations: 11.92 kB / 1.331 GB, free: 12.45 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.543e-05/0.3628, allocations: 8.062 kB / 1.331 GB, free: 12.45 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.951e-05/0.3628, allocations: 7.984 kB / 1.331 GB, free: 12.44 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.417e-05/0.3629, allocations: 15.97 kB / 1.331 GB, free: 12.42 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.007e-06/0.3629, allocations: 4 kB / 1.331 GB, free: 12.42 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.055e-05/0.363, allocations: 91.27 kB / 1.331 GB, free: 12.33 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.363, allocations: 0 / 1.331 GB, free: 12.33 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002051/0.3632, allocations: 20 kB / 1.331 GB, free: 12.31 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.0001447/0.3633, allocations: 111.2 kB / 1.332 GB, free: 12.19 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002415/0.3636, allocations: 91.89 kB / 1.332 GB, free: 12.1 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.3636, allocations: 0 / 1.332 GB, free: 12.1 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001213/0.3637, allocations: 52.2 kB / 1.332 GB, free: 12.05 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002181/0.3639, allocations: 19.86 kB / 1.332 GB, free: 12.03 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006434/0.3645, allocations: 295.6 kB / 1.332 GB, free: 11.71 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.928e-05/0.3646, allocations: 71.33 kB / 1.332 GB, free: 11.62 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.42e-05/0.3647, allocations: 15.44 kB / 1.332 GB, free: 11.61 MB / 1.029 GB Notification: Performance of SimCode: time 3.9e-07/0.3647, allocations: 0 / 1.332 GB, free: 11.61 MB / 1.029 GB Notification: Performance of Templates: time 0.003139/0.3678, allocations: 1.183 MB / 1.333 GB, free: 10.42 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 -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: 11.172473561018705]