Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001973/0.001973, allocations: 80.41 kB / 20.23 MB, free: 4.199 MB / 18.57 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.002488/0.002488, allocations: 165.7 kB / 23.55 MB, free: 0.8867 MB / 18.57 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.538/1.538, allocations: 177.1 MB / 203.9 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 2.796/2.796, allocations: 359 MB / 0.6048 GB, free: 10.94 MB / 0.573 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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_11_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_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 9.137e-06/9.137e-06, allocations: 4 kB / 0.7864 GB, free: 12.79 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.408e-05/4.322e-05, allocations: 2.312 kB / 0.7864 GB, free: 12.79 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.004327/0.004371, allocations: 1.592 MB / 0.7879 GB, free: 11.21 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001383/0.005753, allocations: 485.4 kB / 0.7884 GB, free: 10.73 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.862e-05/0.005822, allocations: 0 / 0.7884 GB, free: 10.73 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 4.117e-05/0.005863, allocations: 8.672 kB / 0.7884 GB, free: 10.72 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 9.703e-05/0.00596, allocations: 17.36 kB / 0.7884 GB, free: 10.71 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003212/0.006281, allocations: 47.77 kB / 0.7885 GB, free: 10.66 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0002126/0.006494, allocations: 67.83 kB / 0.7885 GB, free: 10.59 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001261/0.00662, allocations: 7.156 kB / 0.7886 GB, free: 10.59 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002641/0.006884, allocations: 55.88 kB / 0.7886 GB, free: 10.54 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001137/0.006998, allocations: 23.91 kB / 0.7886 GB, free: 10.51 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 3.331e-05/0.007031, allocations: 8 kB / 0.7886 GB, free: 10.5 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 8.784e-05/0.007119, allocations: 11.98 kB / 0.7886 GB, free: 10.49 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 3.784e-05/0.007157, allocations: 15.98 kB / 0.7887 GB, free: 10.48 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 7.723e-05/0.007234, allocations: 23.92 kB / 0.7887 GB, free: 10.45 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0002654/0.007499, allocations: 75.69 kB / 0.7888 GB, free: 10.38 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.007505, allocations: 1.062 kB / 0.7888 GB, free: 10.38 MB / 0.7448 GB Notification: Performance of FrontEnd: time 5.661e-06/0.00751, allocations: 4 kB / 0.7888 GB, free: 10.38 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 5.451e-06/0.007516, allocations: 0.5938 kB / 0.7888 GB, free: 10.38 MB / 0.7448 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.0009061/0.008422, allocations: 299.4 kB / 0.789 GB, free: 10.05 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 5.01e-05/0.008472, allocations: 12.03 kB / 0.7891 GB, free: 10.04 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002399/0.008712, allocations: 18.55 kB / 0.7891 GB, free: 10.03 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000334/0.009046, allocations: 129.7 kB / 0.7892 GB, free: 9.875 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.347e-05/0.009079, allocations: 12.36 kB / 0.7892 GB, free: 9.863 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.141e-05/0.009121, allocations: 8.359 kB / 0.7892 GB, free: 9.855 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002992/0.00942, allocations: 83.67 kB / 0.7893 GB, free: 9.77 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.152e-05/0.009431, allocations: 192 / 0.7893 GB, free: 9.77 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.532e-05/0.009457, allocations: 4.375 kB / 0.7893 GB, free: 9.766 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.189e-05/0.009469, allocations: 7.938 kB / 0.7893 GB, free: 9.758 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002075/0.009676, allocations: 38.12 kB / 0.7894 GB, free: 9.723 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007562/0.01043, allocations: 256.4 kB / 0.7896 GB, free: 9.441 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004163/0.01085, allocations: 83.06 kB / 0.7897 GB, free: 9.352 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001581/0.01101, allocations: 37.56 kB / 0.7897 GB, free: 9.312 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.019e-05/0.01103, allocations: 0 / 0.7897 GB, free: 9.312 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003528/0.01138, allocations: 117.4 kB / 0.7898 GB, free: 9.188 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=11): time 1.833e-06/0.01138, allocations: 0 / 0.7898 GB, free: 9.188 MB / 0.7448 GB Notification: Performance of matching and sorting (n=11): time 0.0007136/0.0121, allocations: 186.4 kB / 0.79 GB, free: 9 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.455e-05/0.01217, allocations: 56.28 kB / 0.7901 GB, free: 8.934 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000151/0.01232, allocations: 109.8 kB / 0.7902 GB, free: 8.816 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 4.041e-05/0.01236, allocations: 29.7 kB / 0.7902 GB, free: 8.781 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 9.774e-05/0.01246, allocations: 96.8 kB / 0.7903 GB, free: 8.684 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 5.611e-05/0.01251, allocations: 28.61 kB / 0.7903 GB, free: 8.656 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.976e-05/0.0126, allocations: 29.7 kB / 0.7903 GB, free: 8.621 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0002604/0.01287, allocations: 323.5 kB / 0.7906 GB, free: 8.297 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001321/0.013, allocations: 29.36 kB / 0.7907 GB, free: 8.27 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000156/0.01315, allocations: 44.7 kB / 0.7907 GB, free: 8.223 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002598/0.01341, allocations: 73.58 kB / 0.7908 GB, free: 8.145 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.01342, allocations: 1.125 kB / 0.7908 GB, free: 8.145 MB / 0.7448 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004046/0.01382, allocations: 117.5 kB / 0.7909 GB, free: 8.023 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.846e-05/0.01384, allocations: 8.812 kB / 0.7909 GB, free: 8.016 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.151e-06/0.01385, allocations: 0 / 0.7909 GB, free: 8.016 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.402e-05/0.01387, allocations: 0.5312 kB / 0.7909 GB, free: 8.016 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001276/0.014, allocations: 20.83 kB / 0.7909 GB, free: 7.996 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.044e-06/0.014, allocations: 0 / 0.7909 GB, free: 7.996 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001353/0.01414, allocations: 13.92 kB / 0.7909 GB, free: 7.984 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.997e-05/0.01416, allocations: 4 kB / 0.7909 GB, free: 7.98 MB / 0.7448 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.000164/0.01432, allocations: 125.8 kB / 0.7911 GB, free: 7.848 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.626e-05/0.01437, allocations: 15.89 kB / 0.7911 GB, free: 7.832 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.253e-05/0.01441, allocations: 13.03 kB / 0.7911 GB, free: 7.82 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.01441, allocations: 0 / 0.7911 GB, free: 7.82 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.01442, allocations: 2.5 kB / 0.7911 GB, free: 7.82 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.679e-06/0.01443, allocations: 7.922 kB / 0.7911 GB, free: 7.812 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002248/0.01465, allocations: 125.3 kB / 0.7912 GB, free: 7.66 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.01466, allocations: 0 / 0.7912 GB, free: 7.66 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001183/0.01477, allocations: 11.98 kB / 0.7912 GB, free: 7.648 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.779e-06/0.01478, allocations: 3.984 kB / 0.7912 GB, free: 7.645 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.538e-05/0.01481, allocations: 11.98 kB / 0.7912 GB, free: 7.633 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.24e-06/0.01482, allocations: 5.766 kB / 0.7913 GB, free: 7.629 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.539e-06/0.01482, allocations: 3.984 kB / 0.7913 GB, free: 7.625 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000679/0.0155, allocations: 213 kB / 0.7915 GB, free: 7.398 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 2.939e-05/0.01553, allocations: 8.516 kB / 0.7915 GB, free: 7.391 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.87e-05/0.01558, allocations: 19.86 kB / 0.7915 GB, free: 7.371 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001193/0.0157, allocations: 14.17 kB / 0.7915 GB, free: 7.359 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.961e-05/0.01578, allocations: 11.98 kB / 0.7915 GB, free: 7.348 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.351e-05/0.0158, allocations: 7.984 kB / 0.7915 GB, free: 7.34 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 8.818e-05/0.01589, allocations: 87.28 kB / 0.7916 GB, free: 7.254 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.5e-07/0.01589, allocations: 0 / 0.7916 GB, free: 7.254 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0003876/0.01628, allocations: 21.08 kB / 0.7916 GB, free: 7.234 MB / 0.7448 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.0001992/0.01647, allocations: 99.91 kB / 0.7917 GB, free: 7.125 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0003702/0.01684, allocations: 84.77 kB / 0.7918 GB, free: 7.043 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.01685, allocations: 0 / 0.7918 GB, free: 7.043 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0001991/0.01705, allocations: 59.62 kB / 0.7919 GB, free: 6.988 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003461/0.01739, allocations: 17.41 kB / 0.7919 GB, free: 6.973 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007796/0.01817, allocations: 237.3 kB / 0.7921 GB, free: 6.723 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001139/0.01829, allocations: 75.33 kB / 0.7922 GB, free: 6.629 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 8.331e-05/0.01837, allocations: 12.72 kB / 0.7922 GB, free: 6.617 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.422e-05/0.01843, allocations: 12.5 kB / 0.7922 GB, free: 6.605 MB / 0.7448 GB Notification: Performance of SimCode: time 5.82e-07/0.01843, allocations: 3.938 kB / 0.7922 GB, free: 6.602 MB / 0.7448 GB Notification: Performance of Templates: time 0.006089/0.02452, allocations: 1.134 MB / 0.7933 GB, free: 5.492 MB / 0.7448 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & ./Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 7.829363838071004]