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.001889/0.001889, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.002467/0.002467, allocations: 214.4 kB / 22.24 MB, free: 5.262 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.546/1.546, allocations: 230.6 MB / 256 MB, free: 7.777 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.375/3.375, allocations: 0.4892 GB / 0.7943 GB, free: 35.58 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.003351/0.003351, allocations: 61.66 kB / 1.154 GB, free: 25.5 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3702/0.3736, allocations: 176.1 MB / 1.326 GB, free: 1.812 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002932/0.3765, allocations: 1.587 MB / 1.327 GB, free: 224 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001001/0.3775, allocations: 478.8 kB / 1.328 GB, free: 15.75 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.973e-05/0.3776, allocations: 0 / 1.328 GB, free: 15.75 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 2.815e-05/0.3776, allocations: 3.938 kB / 1.328 GB, free: 15.74 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 6.408e-05/0.3777, allocations: 15.88 kB / 1.328 GB, free: 15.73 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002373/0.3779, allocations: 47.88 kB / 1.328 GB, free: 15.68 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001349/0.378, allocations: 71.78 kB / 1.328 GB, free: 15.61 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 9.891e-05/0.3781, allocations: 7.984 kB / 1.328 GB, free: 15.6 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001377/0.3783, allocations: 43.84 kB / 1.328 GB, free: 15.56 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 7.66e-05/0.3783, allocations: 23.91 kB / 1.328 GB, free: 15.54 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.886e-05/0.3784, allocations: 11.94 kB / 1.328 GB, free: 15.52 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 4.296e-05/0.3784, allocations: 8 kB / 1.328 GB, free: 15.52 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.733e-05/0.3784, allocations: 23.92 kB / 1.328 GB, free: 15.49 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 4.78e-05/0.3785, allocations: 23.92 kB / 1.328 GB, free: 15.47 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001425/0.3786, allocations: 71.7 kB / 1.328 GB, free: 15.4 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.3786, allocations: 0 / 1.328 GB, free: 15.4 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.282e-06/0.3786, allocations: 0 / 1.328 GB, free: 15.4 MB / 1.029 GB Notification: Performance of Transformations before backend: time 4.339e-06/0.3786, allocations: 0 / 1.328 GB, free: 15.4 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.0006194/0.3793, allocations: 302.1 kB / 1.328 GB, free: 15.07 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.686e-05/0.3793, allocations: 12.03 kB / 1.328 GB, free: 15.06 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001584/0.3794, allocations: 20.88 kB / 1.328 GB, free: 15.04 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002327/0.3797, allocations: 126.5 kB / 1.328 GB, free: 14.89 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.358e-05/0.3797, allocations: 12.31 kB / 1.328 GB, free: 14.88 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.1e-05/0.3797, allocations: 4.375 kB / 1.328 GB, free: 14.88 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002327/0.38, allocations: 85.95 kB / 1.328 GB, free: 14.79 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.589e-05/0.38, allocations: 3.938 kB / 1.328 GB, free: 14.79 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.614e-05/0.38, allocations: 3.984 kB / 1.328 GB, free: 14.78 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.035e-05/0.38, allocations: 7.984 kB / 1.328 GB, free: 14.77 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001361/0.3802, allocations: 39.97 kB / 1.328 GB, free: 14.73 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005529/0.3807, allocations: 256.4 kB / 1.329 GB, free: 14.45 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000291/0.381, allocations: 90.47 kB / 1.329 GB, free: 14.36 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.271e-05/0.3811, allocations: 32.84 kB / 1.329 GB, free: 14.32 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.751e-05/0.3811, allocations: 0 / 1.329 GB, free: 14.32 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002482/0.3814, allocations: 119.5 kB / 1.329 GB, free: 14.19 MB / 1.029 GB Notification: Performance of pre-optimization done (n=11): time 1.402e-06/0.3814, allocations: 4 kB / 1.329 GB, free: 14.19 MB / 1.029 GB Notification: Performance of matching and sorting (n=11): time 0.0004279/0.3818, allocations: 165.6 kB / 1.329 GB, free: 14.02 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.522e-05/0.3818, allocations: 63.39 kB / 1.329 GB, free: 13.95 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001094/0.382, allocations: 121.7 kB / 1.329 GB, free: 13.82 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.455e-05/0.382, allocations: 29.7 kB / 1.329 GB, free: 13.78 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.676e-05/0.382, allocations: 88.38 kB / 1.329 GB, free: 13.69 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.903e-05/0.3821, allocations: 31.73 kB / 1.329 GB, free: 13.66 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.894e-05/0.3821, allocations: 25.72 kB / 1.329 GB, free: 13.63 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001578/0.3823, allocations: 318.8 kB / 1.33 GB, free: 13.31 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.083e-05/0.3824, allocations: 35.98 kB / 1.33 GB, free: 13.27 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.028e-05/0.3824, allocations: 45.64 kB / 1.33 GB, free: 13.22 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001571/0.3826, allocations: 69.62 kB / 1.33 GB, free: 13.15 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.674e-06/0.3826, allocations: 0 / 1.33 GB, free: 13.15 MB / 1.029 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002224/0.3828, allocations: 117.5 kB / 1.33 GB, free: 13.03 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.3828, allocations: 4 kB / 1.33 GB, free: 13.02 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.3829, allocations: 0 / 1.33 GB, free: 13.02 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.837e-05/0.3829, allocations: 0 / 1.33 GB, free: 13.02 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.285e-05/0.383, allocations: 15.98 kB / 1.33 GB, free: 13.01 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.383, allocations: 4 kB / 1.33 GB, free: 13 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.551e-05/0.383, allocations: 11.98 kB / 1.33 GB, free: 12.99 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.141e-05/0.3831, allocations: 4 kB / 1.33 GB, free: 12.99 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.0001245/0.3832, allocations: 121.7 kB / 1.33 GB, free: 12.86 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.106e-05/0.3832, allocations: 11.95 kB / 1.33 GB, free: 12.85 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.212e-05/0.3832, allocations: 20.36 kB / 1.33 GB, free: 12.82 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.3832, allocations: 0 / 1.33 GB, free: 12.82 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.3833, allocations: 0 / 1.33 GB, free: 12.82 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.047e-06/0.3833, allocations: 0 / 1.33 GB, free: 12.82 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001689/0.3834, allocations: 137.2 kB / 1.33 GB, free: 12.66 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.3834, allocations: 0 / 1.33 GB, free: 12.66 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.367e-05/0.3835, allocations: 12 kB / 1.33 GB, free: 12.65 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.3835, allocations: 0 / 1.33 GB, free: 12.65 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.924e-05/0.3835, allocations: 7.984 kB / 1.33 GB, free: 12.64 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.3835, allocations: 0 / 1.33 GB, free: 12.64 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.3835, allocations: 0 / 1.33 GB, free: 12.64 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004507/0.384, allocations: 221.3 kB / 1.331 GB, free: 12.41 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.651e-05/0.384, allocations: 11.92 kB / 1.331 GB, free: 12.39 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.219e-05/0.384, allocations: 11.98 kB / 1.331 GB, free: 12.38 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.364e-05/0.3841, allocations: 12.05 kB / 1.331 GB, free: 12.37 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.477e-05/0.3842, allocations: 11.98 kB / 1.331 GB, free: 12.36 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.245e-05/0.3842, allocations: 7.984 kB / 1.331 GB, free: 12.35 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.516e-05/0.3843, allocations: 91.59 kB / 1.331 GB, free: 12.26 MB / 1.029 GB Notification: Performance of sort global known variables: time 6e-08/0.3843, allocations: 0 / 1.331 GB, free: 12.26 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002151/0.3845, allocations: 23.98 kB / 1.331 GB, free: 12.24 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.0001438/0.3846, allocations: 107.2 kB / 1.331 GB, free: 12.12 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002564/0.3849, allocations: 95.89 kB / 1.331 GB, free: 12.03 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.3849, allocations: 0 / 1.331 GB, free: 12.03 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001255/0.385, allocations: 51.91 kB / 1.331 GB, free: 11.98 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002237/0.3852, allocations: 13.34 kB / 1.331 GB, free: 11.97 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005725/0.3858, allocations: 257.8 kB / 1.331 GB, free: 11.69 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.706e-05/0.3859, allocations: 79.27 kB / 1.331 GB, free: 11.59 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 5.124e-05/0.3859, allocations: 8.75 kB / 1.331 GB, free: 11.58 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.003e-05/0.386, allocations: 19.42 kB / 1.331 GB, free: 11.57 MB / 1.029 GB Notification: Performance of SimCode: time 3e-07/0.386, allocations: 0 / 1.331 GB, free: 11.57 MB / 1.029 GB Notification: Performance of Templates: time 0.004376/0.3903, allocations: 1.138 MB / 1.332 GB, free: 10.45 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/jenkins/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.498829320073128]