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.002722/0.002722, allocations: 79.7 kB / 20.23 MB, free: 4.188 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.003228/0.003228, allocations: 161.3 kB / 23.55 MB, free: 0.8711 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.58/1.58, allocations: 177.1 MB / 203.9 MB, free: 5.605 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.883/2.883, allocations: 359 MB / 0.6048 GB, free: 10.92 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 1.743e-06/1.743e-06, allocations: 0 / 0.7864 GB, free: 11.66 MB / 0.698 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.458e-05/2.632e-05, allocations: 6.859 kB / 0.7864 GB, free: 11.65 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.00313/0.003156, allocations: 1.59 MB / 0.788 GB, free: 10.07 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.001038/0.004194, allocations: 496.3 kB / 0.7884 GB, free: 9.582 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.924e-05/0.004253, allocations: 0 / 0.7884 GB, free: 9.582 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 2.672e-05/0.00428, allocations: 3.938 kB / 0.7884 GB, free: 9.578 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 8.18e-05/0.004362, allocations: 17.06 kB / 0.7885 GB, free: 9.562 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002355/0.004597, allocations: 40.52 kB / 0.7885 GB, free: 9.523 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.0001461/0.004743, allocations: 71.78 kB / 0.7886 GB, free: 9.453 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 8.773e-05/0.004831, allocations: 13.38 kB / 0.7886 GB, free: 9.441 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001728/0.005004, allocations: 55.83 kB / 0.7886 GB, free: 9.387 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 8.882e-05/0.005093, allocations: 23.95 kB / 0.7886 GB, free: 9.363 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 2.426e-05/0.005117, allocations: 4.688 kB / 0.7887 GB, free: 9.359 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 5.228e-05/0.005169, allocations: 12 kB / 0.7887 GB, free: 9.348 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 3.48e-05/0.005204, allocations: 20.81 kB / 0.7887 GB, free: 9.328 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 4.692e-05/0.005251, allocations: 19.98 kB / 0.7887 GB, free: 9.309 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0001687/0.00542, allocations: 76.36 kB / 0.7888 GB, free: 9.234 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 2.345e-06/0.005422, allocations: 0 / 0.7888 GB, free: 9.234 MB / 0.698 GB Notification: Performance of FrontEnd: time 7.22e-07/0.005423, allocations: 0.5625 kB / 0.7888 GB, free: 9.234 MB / 0.698 GB Notification: Performance of Transformations before backend: time 3.897e-06/0.005426, allocations: 3.438 kB / 0.7888 GB, free: 9.234 MB / 0.698 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.0006488/0.006075, allocations: 404.1 kB / 0.7892 GB, free: 8.805 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.544e-05/0.006111, allocations: 8.031 kB / 0.7892 GB, free: 8.797 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001566/0.006267, allocations: 20.88 kB / 0.7892 GB, free: 8.777 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002091/0.006476, allocations: 132.5 kB / 0.7893 GB, free: 8.621 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.811e-05/0.006505, allocations: 8.375 kB / 0.7893 GB, free: 8.613 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.478e-05/0.006529, allocations: 4.375 kB / 0.7893 GB, free: 8.609 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002116/0.006741, allocations: 94.06 kB / 0.7894 GB, free: 8.512 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.759e-06/0.006751, allocations: 0.9062 kB / 0.7894 GB, free: 8.512 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.726e-05/0.006768, allocations: 10.02 kB / 0.7894 GB, free: 8.504 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.103e-06/0.006775, allocations: 3.938 kB / 0.7894 GB, free: 8.5 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001366/0.006912, allocations: 39.98 kB / 0.7895 GB, free: 8.461 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005758/0.007487, allocations: 308.8 kB / 0.7898 GB, free: 8.125 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002933/0.007781, allocations: 95.03 kB / 0.7899 GB, free: 8.02 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001014/0.007882, allocations: 44.41 kB / 0.7899 GB, free: 7.973 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.35e-05/0.007896, allocations: 3.938 kB / 0.7899 GB, free: 7.969 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002696/0.008165, allocations: 126.3 kB / 0.79 GB, free: 7.832 MB / 0.698 GB Notification: Performance of pre-optimization done (n=11): time 1.242e-06/0.008166, allocations: 1.594 kB / 0.79 GB, free: 7.832 MB / 0.698 GB Notification: Performance of matching and sorting (n=11): time 0.0004419/0.008608, allocations: 181.5 kB / 0.7902 GB, free: 7.648 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.27e-05/0.008661, allocations: 55.41 kB / 0.7903 GB, free: 7.582 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001512/0.008812, allocations: 181.9 kB / 0.7904 GB, free: 7.387 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 2.488e-05/0.008837, allocations: 26.95 kB / 0.7904 GB, free: 7.355 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001003/0.008938, allocations: 135.1 kB / 0.7906 GB, free: 7.219 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 5.096e-05/0.008988, allocations: 39.88 kB / 0.7906 GB, free: 7.18 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.904e-05/0.009058, allocations: 40.7 kB / 0.7907 GB, free: 7.133 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0002719/0.009329, allocations: 0.4884 MB / 0.7911 GB, free: 6.633 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.183e-05/0.009411, allocations: 27.98 kB / 0.7912 GB, free: 6.605 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.872e-05/0.00951, allocations: 47.89 kB / 0.7912 GB, free: 6.551 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001519/0.009662, allocations: 71.83 kB / 0.7913 GB, free: 6.473 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.009664, allocations: 4 kB / 0.7913 GB, free: 6.469 MB / 0.698 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002433/0.009907, allocations: 114.4 kB / 0.7914 GB, free: 6.352 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.923e-05/0.009927, allocations: 15.92 kB / 0.7914 GB, free: 6.336 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.018e-06/0.009931, allocations: 0.8125 kB / 0.7914 GB, free: 6.336 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.377e-05/0.009944, allocations: 0 / 0.7914 GB, free: 6.336 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.17e-05/0.01002, allocations: 8.531 kB / 0.7914 GB, free: 6.328 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.306e-06/0.01002, allocations: 5.375 kB / 0.7914 GB, free: 6.324 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.504e-05/0.01009, allocations: 7.938 kB / 0.7914 GB, free: 6.316 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.249e-05/0.0101, allocations: 8 kB / 0.7914 GB, free: 6.309 MB / 0.698 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.0003694/0.01047, allocations: 171.3 kB / 0.7916 GB, free: 6.133 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.88e-05/0.0105, allocations: 15.89 kB / 0.7916 GB, free: 6.117 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.552e-05/0.01054, allocations: 16.42 kB / 0.7916 GB, free: 6.102 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.053e-06/0.01054, allocations: 0.6562 kB / 0.7916 GB, free: 6.102 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.01054, allocations: 0.7188 kB / 0.7916 GB, free: 6.102 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.01054, allocations: 4 kB / 0.7916 GB, free: 6.098 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001721/0.01072, allocations: 145.4 kB / 0.7918 GB, free: 5.922 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.01072, allocations: 0 / 0.7918 GB, free: 5.922 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.1e-05/0.0108, allocations: 8 kB / 0.7918 GB, free: 5.914 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.458e-06/0.0108, allocations: 4.875 kB / 0.7918 GB, free: 5.91 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.467e-05/0.01082, allocations: 3.984 kB / 0.7918 GB, free: 5.906 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/0.01082, allocations: 1.219 kB / 0.7918 GB, free: 5.906 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.01082, allocations: 0 / 0.7918 GB, free: 5.906 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004457/0.01127, allocations: 236.2 kB / 0.792 GB, free: 5.652 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 1.655e-05/0.01128, allocations: 12.95 kB / 0.792 GB, free: 5.641 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.571e-05/0.01131, allocations: 3.938 kB / 0.792 GB, free: 5.637 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.961e-05/0.01137, allocations: 14.23 kB / 0.792 GB, free: 5.625 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.147e-05/0.01143, allocations: 11.97 kB / 0.7921 GB, free: 5.613 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.666e-05/0.01145, allocations: 8 kB / 0.7921 GB, free: 5.605 MB / 0.698 GB Notification: Performance of sorting global known variables: time 9.277e-05/0.01154, allocations: 135.2 kB / 0.7922 GB, free: 5.473 MB / 0.698 GB Notification: Performance of sort global known variables: time 6e-08/0.01154, allocations: 0 / 0.7922 GB, free: 5.473 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002108/0.01175, allocations: 16 kB / 0.7922 GB, free: 5.457 MB / 0.698 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.0001546/0.0119, allocations: 109.4 kB / 0.7923 GB, free: 5.348 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0002778/0.01218, allocations: 96.23 kB / 0.7924 GB, free: 5.25 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.01218, allocations: 0 / 0.7924 GB, free: 5.25 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001409/0.01232, allocations: 71.75 kB / 0.7925 GB, free: 5.176 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002297/0.01255, allocations: 19.98 kB / 0.7925 GB, free: 5.156 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005945/0.01315, allocations: 245.5 kB / 0.7927 GB, free: 4.906 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.244e-05/0.01323, allocations: 75.33 kB / 0.7928 GB, free: 4.812 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 4.837e-05/0.01328, allocations: 14.05 kB / 0.7928 GB, free: 4.801 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.698e-05/0.01333, allocations: 12.5 kB / 0.7928 GB, free: 4.785 MB / 0.698 GB Notification: Performance of SimCode: time 5.82e-07/0.01333, allocations: 0 / 0.7928 GB, free: 4.785 MB / 0.698 GB Notification: Performance of Templates: time 0.004609/0.01794, allocations: 1.124 MB / 0.7939 GB, free: 3.684 MB / 0.698 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=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) [Timeout 240] 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: 8.022107054013759]