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.001416/0.001416, allocations: 80.28 kB / 19.18 MB, free: 2.531 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.001589/0.001589, allocations: 164.6 kB / 22.46 MB, free: 5.359 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.503/1.503, allocations: 177.1 MB / 202.8 MB, free: 9.195 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 2.899/2.899, allocations: 377.8 MB / 0.6221 GB, free: 12.59 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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: Performance of FrontEnd - loaded program: time 4.128e-06/4.128e-06, allocations: 3.984 kB / 0.9814 GB, free: 11.94 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.471e-05/3.883e-05, allocations: 2.281 kB / 0.9815 GB, free: 11.93 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.003087/0.003126, allocations: 1.589 MB / 0.983 GB, free: 10.33 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001058/0.004184, allocations: 478.8 kB / 0.9835 GB, free: 9.859 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.731e-05/0.004251, allocations: 4 kB / 0.9835 GB, free: 9.855 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.55e-05/0.004287, allocations: 11.92 kB / 0.9835 GB, free: 9.844 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 6.261e-05/0.00435, allocations: 7.875 kB / 0.9835 GB, free: 9.836 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002657/0.004615, allocations: 39.83 kB / 0.9835 GB, free: 9.797 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001713/0.004787, allocations: 83.75 kB / 0.9836 GB, free: 9.715 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 9.944e-05/0.004886, allocations: 4 kB / 0.9836 GB, free: 9.711 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001604/0.005046, allocations: 47.89 kB / 0.9836 GB, free: 9.664 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 8.358e-05/0.00513, allocations: 27.91 kB / 0.9837 GB, free: 9.637 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.192e-05/0.005152, allocations: 4 kB / 0.9837 GB, free: 9.633 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 4.933e-05/0.005201, allocations: 12 kB / 0.9837 GB, free: 9.621 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 3.189e-05/0.005233, allocations: 23.91 kB / 0.9837 GB, free: 9.598 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 5.329e-05/0.005286, allocations: 23.92 kB / 0.9837 GB, free: 9.574 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001765/0.005463, allocations: 79.73 kB / 0.9838 GB, free: 9.496 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 2.595e-06/0.005466, allocations: 0 / 0.9838 GB, free: 9.496 MB / 0.9356 GB Notification: Performance of FrontEnd: time 7.41e-07/0.005466, allocations: 3.938 kB / 0.9838 GB, free: 9.492 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 9.177e-06/0.005475, allocations: 0 / 0.9838 GB, free: 9.492 MB / 0.9356 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.0006068/0.006082, allocations: 298.2 kB / 0.9841 GB, free: 9.172 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 5.628e-05/0.006138, allocations: 12.02 kB / 0.9841 GB, free: 9.16 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001724/0.006311, allocations: 20.89 kB / 0.9841 GB, free: 9.141 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002746/0.006586, allocations: 125.7 kB / 0.9843 GB, free: 8.992 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.972e-05/0.006605, allocations: 4.375 kB / 0.9843 GB, free: 8.988 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.299e-05/0.006638, allocations: 8.375 kB / 0.9843 GB, free: 8.98 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000204/0.006842, allocations: 86.14 kB / 0.9843 GB, free: 8.891 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.185e-06/0.00685, allocations: 192 / 0.9843 GB, free: 8.891 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.932e-05/0.00687, allocations: 8.359 kB / 0.9844 GB, free: 8.883 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.006877, allocations: 3.938 kB / 0.9844 GB, free: 8.879 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001542/0.007031, allocations: 47.97 kB / 0.9844 GB, free: 8.832 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005654/0.007597, allocations: 248.5 kB / 0.9846 GB, free: 8.559 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002712/0.007868, allocations: 82.58 kB / 0.9847 GB, free: 8.469 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.589e-05/0.007964, allocations: 36.98 kB / 0.9848 GB, free: 8.43 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.571e-05/0.00798, allocations: 7.984 kB / 0.9848 GB, free: 8.422 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002274/0.008207, allocations: 111.3 kB / 0.9849 GB, free: 8.301 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=11): time 1.543e-06/0.008209, allocations: 0 / 0.9849 GB, free: 8.301 MB / 0.9356 GB Notification: Performance of matching and sorting (n=11): time 0.0004337/0.008642, allocations: 185.4 kB / 0.985 GB, free: 8.113 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.676e-05/0.008689, allocations: 51.41 kB / 0.9851 GB, free: 8.051 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001033/0.008792, allocations: 113.8 kB / 0.9852 GB, free: 7.93 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.465e-05/0.008817, allocations: 29.7 kB / 0.9852 GB, free: 7.895 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 5.554e-05/0.008872, allocations: 92.31 kB / 0.9853 GB, free: 7.801 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.776e-05/0.00891, allocations: 27.8 kB / 0.9853 GB, free: 7.773 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.105e-05/0.008961, allocations: 25.72 kB / 0.9854 GB, free: 7.742 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001637/0.009125, allocations: 322.8 kB / 0.9857 GB, free: 7.418 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.438e-05/0.009209, allocations: 35.98 kB / 0.9857 GB, free: 7.383 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001004/0.00931, allocations: 52.19 kB / 0.9858 GB, free: 7.328 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001584/0.009468, allocations: 73.95 kB / 0.9858 GB, free: 7.25 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.009471, allocations: 0 / 0.9858 GB, free: 7.25 MB / 0.9356 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002401/0.009711, allocations: 109.6 kB / 0.9859 GB, free: 7.137 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.632e-05/0.009727, allocations: 6.344 kB / 0.9859 GB, free: 7.133 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.009732, allocations: 0 / 0.9859 GB, free: 7.133 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.676e-05/0.009748, allocations: 11.92 kB / 0.986 GB, free: 7.121 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.43e-05/0.009823, allocations: 12 kB / 0.986 GB, free: 7.109 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.929e-06/0.009828, allocations: 0 / 0.986 GB, free: 7.109 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001074/0.009935, allocations: 23.88 kB / 0.986 GB, free: 7.086 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.436e-06/0.009943, allocations: 0 / 0.986 GB, free: 7.086 MB / 0.9356 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.0001221/0.01007, allocations: 117.8 kB / 0.9861 GB, free: 6.961 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.654e-05/0.01009, allocations: 19.92 kB / 0.9861 GB, free: 6.941 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.607e-05/0.01013, allocations: 12.42 kB / 0.9861 GB, free: 6.93 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.01013, allocations: 3.938 kB / 0.9861 GB, free: 6.926 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.01013, allocations: 4 kB / 0.9861 GB, free: 6.922 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.01014, allocations: 4 kB / 0.9861 GB, free: 6.918 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001528/0.01029, allocations: 129.3 kB / 0.9863 GB, free: 6.762 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.01029, allocations: 7.938 kB / 0.9863 GB, free: 6.754 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.741e-05/0.01038, allocations: 4 kB / 0.9863 GB, free: 6.75 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.946e-06/0.01039, allocations: 7.938 kB / 0.9863 GB, free: 6.742 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.527e-05/0.0104, allocations: 3.984 kB / 0.9863 GB, free: 6.738 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.01041, allocations: 0 / 0.9863 GB, free: 6.738 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.01041, allocations: 0 / 0.9863 GB, free: 6.738 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004307/0.01084, allocations: 209 kB / 0.9865 GB, free: 6.516 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 1.709e-05/0.01085, allocations: 11.97 kB / 0.9865 GB, free: 6.504 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.311e-05/0.01089, allocations: 19.94 kB / 0.9865 GB, free: 6.484 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.651e-05/0.01096, allocations: 7.984 kB / 0.9865 GB, free: 6.477 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.998e-05/0.01103, allocations: 15.92 kB / 0.9865 GB, free: 6.461 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.528e-05/0.01105, allocations: 7.984 kB / 0.9865 GB, free: 6.453 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 7.224e-05/0.01112, allocations: 95.58 kB / 0.9866 GB, free: 6.359 MB / 0.9356 GB Notification: Performance of sort global known variables: time 8e-08/0.01112, allocations: 0 / 0.9866 GB, free: 6.359 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002142/0.01134, allocations: 20 kB / 0.9867 GB, free: 6.34 MB / 0.9356 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.0002016/0.01154, allocations: 99.78 kB / 0.9868 GB, free: 6.234 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002537/0.01179, allocations: 87.89 kB / 0.9868 GB, free: 6.148 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.01179, allocations: 0 / 0.9868 GB, free: 6.148 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001285/0.01192, allocations: 51.91 kB / 0.9869 GB, free: 6.098 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000229/0.01215, allocations: 15.98 kB / 0.9869 GB, free: 6.082 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005709/0.01272, allocations: 229.1 kB / 0.9871 GB, free: 5.832 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.397e-05/0.01282, allocations: 75.58 kB / 0.9872 GB, free: 5.738 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 4.94e-05/0.01286, allocations: 12.66 kB / 0.9872 GB, free: 5.727 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.834e-05/0.01291, allocations: 16.5 kB / 0.9872 GB, free: 5.711 MB / 0.9356 GB Notification: Performance of SimCode: time 8.22e-07/0.01291, allocations: 4 kB / 0.9872 GB, free: 5.707 MB / 0.9356 GB Notification: Performance of Templates: time 0.004422/0.01734, allocations: 1.123 MB / 0.9883 GB, free: 4.609 MB / 0.9356 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: 8.500327978283167]