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.001435/0.001435, allocations: 80.3 kB / 21.47 MB, free: 3.027 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.001825/0.001825, allocations: 169.5 kB / 24.86 MB, free: 8.895 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 0.999/0.999, allocations: 177.1 MB / 205.3 MB, free: 5.504 MB / 186.7 MB " [Timeout remaining time 179] 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 1.805/1.805, allocations: 359 MB / 0.6063 GB, free: 10.9 MB / 0.573 GB " [Timeout remaining time 178] 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.472e-06/1.472e-06, allocations: 0 / 0.7883 GB, free: 12.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.771e-05/2.918e-05, allocations: 2.312 kB / 0.7883 GB, free: 12.19 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002345/0.002374, allocations: 1.643 MB / 0.7899 GB, free: 10.55 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.0006477/0.003022, allocations: 488.9 kB / 0.7904 GB, free: 10.07 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.924e-05/0.003081, allocations: 3.938 kB / 0.7904 GB, free: 10.07 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 2.512e-05/0.003106, allocations: 8.828 kB / 0.7904 GB, free: 10.06 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 6.065e-05/0.003167, allocations: 8.438 kB / 0.7904 GB, free: 10.05 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001944/0.003361, allocations: 45.08 kB / 0.7905 GB, free: 10.01 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.000109/0.00347, allocations: 75.75 kB / 0.7905 GB, free: 9.938 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 7.544e-05/0.003546, allocations: 9.5 kB / 0.7905 GB, free: 9.93 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001181/0.003664, allocations: 51.83 kB / 0.7906 GB, free: 9.879 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 6.005e-05/0.003724, allocations: 27.89 kB / 0.7906 GB, free: 9.852 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 1.587e-05/0.00374, allocations: 8 kB / 0.7906 GB, free: 9.844 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 3.746e-05/0.003777, allocations: 9.219 kB / 0.7906 GB, free: 9.836 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 1.829e-05/0.003795, allocations: 15.98 kB / 0.7906 GB, free: 9.82 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 2.902e-05/0.003824, allocations: 27.91 kB / 0.7907 GB, free: 9.793 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.000101/0.003925, allocations: 44.5 kB / 0.7907 GB, free: 9.75 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 1.804e-06/0.003927, allocations: 0 / 0.7907 GB, free: 9.75 MB / 0.7448 GB Notification: Performance of FrontEnd: time 6.32e-07/0.003928, allocations: 1.406 kB / 0.7907 GB, free: 9.75 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 2.685e-06/0.00393, allocations: 0 / 0.7907 GB, free: 9.75 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.0003762/0.004307, allocations: 408.4 kB / 0.7911 GB, free: 9.316 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.579e-05/0.004342, allocations: 12.78 kB / 0.7911 GB, free: 9.305 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.957e-05/0.004442, allocations: 17.89 kB / 0.7911 GB, free: 9.289 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001153/0.004557, allocations: 128.5 kB / 0.7913 GB, free: 9.137 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.852e-05/0.004576, allocations: 8.375 kB / 0.7913 GB, free: 9.129 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.688e-05/0.004593, allocations: 4.969 kB / 0.7913 GB, free: 9.125 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.709e-05/0.00469, allocations: 84.03 kB / 0.7913 GB, free: 9.035 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.203e-06/0.004697, allocations: 8.172 kB / 0.7914 GB, free: 9.027 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.735e-06/0.004705, allocations: 384 / 0.7914 GB, free: 9.027 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.004711, allocations: 7 kB / 0.7914 GB, free: 9.023 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.59e-05/0.004747, allocations: 19.92 kB / 0.7914 GB, free: 9.004 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002927/0.00504, allocations: 284.3 kB / 0.7917 GB, free: 8.699 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001521/0.005192, allocations: 75.02 kB / 0.7917 GB, free: 8.613 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.923e-05/0.005221, allocations: 27.7 kB / 0.7918 GB, free: 8.582 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.303e-05/0.005234, allocations: 0 / 0.7918 GB, free: 8.582 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004243/0.005658, allocations: 107.4 kB / 0.7919 GB, free: 8.465 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=11): time 7.92e-07/0.005659, allocations: 0 / 0.7919 GB, free: 8.465 MB / 0.7448 GB Notification: Performance of matching and sorting (n=11): time 0.0001832/0.005842, allocations: 133.5 kB / 0.792 GB, free: 8.328 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.499e-05/0.005877, allocations: 59.34 kB / 0.792 GB, free: 8.258 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.914e-05/0.005947, allocations: 167.1 kB / 0.7922 GB, free: 8.078 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.419e-05/0.005961, allocations: 33.7 kB / 0.7922 GB, free: 8.039 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 3.908e-05/0.006, allocations: 135 kB / 0.7924 GB, free: 7.902 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 2.542e-05/0.006025, allocations: 23.84 kB / 0.7924 GB, free: 7.879 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.428e-05/0.006059, allocations: 36.94 kB / 0.7924 GB, free: 7.836 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001027/0.006162, allocations: 0.4923 MB / 0.7929 GB, free: 7.332 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.751e-05/0.00618, allocations: 8 kB / 0.7929 GB, free: 7.324 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.206e-05/0.006212, allocations: 41.72 kB / 0.7929 GB, free: 7.277 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.969e-05/0.006261, allocations: 48.98 kB / 0.793 GB, free: 7.223 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.006263, allocations: 0 / 0.793 GB, free: 7.223 MB / 0.7448 GB Notification: Performance of matching and sorting (n=14) (initialization): time 8.557e-05/0.006349, allocations: 85.56 kB / 0.7931 GB, free: 7.133 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.283e-05/0.006362, allocations: 11.94 kB / 0.7931 GB, free: 7.121 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.028e-06/0.006366, allocations: 0.9062 kB / 0.7931 GB, free: 7.121 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.264e-06/0.006373, allocations: 0 / 0.7931 GB, free: 7.121 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.448e-05/0.006417, allocations: 11.94 kB / 0.7931 GB, free: 7.109 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.168e-06/0.006421, allocations: 4.531 kB / 0.7931 GB, free: 7.105 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.295e-05/0.006454, allocations: 16.55 kB / 0.7931 GB, free: 7.09 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.165e-06/0.006463, allocations: 12.52 kB / 0.7931 GB, free: 7.078 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 6.607e-05/0.006529, allocations: 163.7 kB / 0.7933 GB, free: 6.91 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.43e-05/0.006543, allocations: 15.89 kB / 0.7933 GB, free: 6.895 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.329e-05/0.006566, allocations: 16.42 kB / 0.7933 GB, free: 6.879 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.006569, allocations: 4.531 kB / 0.7933 GB, free: 6.875 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.232e-06/0.00657, allocations: 1.375 kB / 0.7933 GB, free: 6.875 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.006573, allocations: 0 / 0.7933 GB, free: 6.875 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.647e-05/0.00665, allocations: 125.2 kB / 0.7934 GB, free: 6.727 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.00665, allocations: 0 / 0.7934 GB, free: 6.727 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.577e-05/0.006686, allocations: 13.14 kB / 0.7935 GB, free: 6.715 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.81e-07/0.006687, allocations: 0 / 0.7935 GB, free: 6.715 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.215e-06/0.006695, allocations: 4 kB / 0.7935 GB, free: 6.711 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.006697, allocations: 4.969 kB / 0.7935 GB, free: 6.707 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.006698, allocations: 3.984 kB / 0.7935 GB, free: 6.703 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001705/0.006869, allocations: 176.9 kB / 0.7936 GB, free: 6.508 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 7.545e-06/0.006876, allocations: 5.703 kB / 0.7936 GB, free: 6.504 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.867e-05/0.006895, allocations: 11.98 kB / 0.7937 GB, free: 6.492 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.511e-05/0.00692, allocations: 7.938 kB / 0.7937 GB, free: 6.484 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.538e-05/0.006955, allocations: 19.91 kB / 0.7937 GB, free: 6.465 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.12e-06/0.00696, allocations: 0.8125 kB / 0.7937 GB, free: 6.465 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 3.821e-05/0.006999, allocations: 135.2 kB / 0.7938 GB, free: 6.332 MB / 0.7448 GB Notification: Performance of sort global known variables: time 5e-08/0.006999, allocations: 0.9375 kB / 0.7938 GB, free: 6.332 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0001226/0.007121, allocations: 20 kB / 0.7938 GB, free: 6.312 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 7.254e-05/0.007194, allocations: 106.7 kB / 0.7939 GB, free: 6.199 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 9.064e-05/0.007285, allocations: 63.53 kB / 0.794 GB, free: 6.133 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 8.01e-07/0.007285, allocations: 0.875 kB / 0.794 GB, free: 6.133 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 4.282e-05/0.007328, allocations: 39.66 kB / 0.794 GB, free: 6.09 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001319/0.00746, allocations: 18.14 kB / 0.794 GB, free: 6.074 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004202/0.00788, allocations: 247.6 kB / 0.7943 GB, free: 5.82 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.829e-05/0.007909, allocations: 56.45 kB / 0.7943 GB, free: 5.746 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 3.289e-05/0.007941, allocations: 11.06 kB / 0.7943 GB, free: 5.738 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.846e-05/0.008, allocations: 82.2 kB / 0.7944 GB, free: 5.656 MB / 0.7448 GB Notification: Performance of SimCode: time 5.11e-07/0.008, allocations: 0 / 0.7944 GB, free: 5.656 MB / 0.7448 GB Notification: Performance of Templates: time 0.002494/0.01049, allocations: 1.274 MB / 0.7957 GB, free: 4.41 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=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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.231141953263432]