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.0009539/0.0009539, allocations: 82.64 kB / 20.68 MB, free: 3.816 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.001066/0.001066, allocations: 185 kB / 24.09 MB, free: 416 kB / 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.9116/0.9116, allocations: 177.1 MB / 204.5 MB, free: 5.52 MB / 186.7 MB " [Timeout remaining time 179] 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 1.891/1.891, allocations: 377.9 MB / 0.624 GB, free: 8.391 MB / 0.5886 GB " [Timeout remaining time 178] 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 1.754e-06/1.754e-06, allocations: 0 / 0.812 GB, free: 1.414 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.251e-05/1.427e-05, allocations: 2.312 kB / 0.812 GB, free: 1.41 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.001829/0.001843, allocations: 1.635 MB / 0.8136 GB, free: 15.78 MB / 0.7761 GB Notification: Performance of NFInst.instExpressions: time 0.0006644/0.002508, allocations: 0.4901 MB / 0.8141 GB, free: 15.29 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.813e-05/0.002576, allocations: 3.938 kB / 0.8141 GB, free: 15.29 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 2.812e-05/0.002604, allocations: 3.938 kB / 0.8141 GB, free: 15.28 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 0.0003833/0.002987, allocations: 7.922 kB / 0.8141 GB, free: 15.27 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002283/0.003216, allocations: 49.16 kB / 0.8142 GB, free: 15.23 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0001093/0.003325, allocations: 67.78 kB / 0.8142 GB, free: 15.16 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 8.305e-05/0.003408, allocations: 13.58 kB / 0.8142 GB, free: 15.15 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001265/0.003534, allocations: 55.83 kB / 0.8143 GB, free: 15.09 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 6.015e-05/0.003595, allocations: 23.95 kB / 0.8143 GB, free: 15.07 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 1.801e-05/0.003613, allocations: 8 kB / 0.8143 GB, free: 15.06 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 4.661e-05/0.003659, allocations: 8.719 kB / 0.8143 GB, free: 15.05 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 2.517e-05/0.003684, allocations: 15.92 kB / 0.8144 GB, free: 15.04 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 3.265e-05/0.003717, allocations: 16.52 kB / 0.8144 GB, free: 15.02 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.000109/0.003826, allocations: 61.3 kB / 0.8144 GB, free: 14.96 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 1.934e-06/0.003828, allocations: 0 / 0.8144 GB, free: 14.96 MB / 0.7761 GB Notification: Performance of FrontEnd: time 4.71e-07/0.003828, allocations: 0 / 0.8144 GB, free: 14.96 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 3.466e-06/0.003832, allocations: 0 / 0.8144 GB, free: 14.96 MB / 0.7761 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.0003655/0.004197, allocations: 400.9 kB / 0.8148 GB, free: 14.54 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.281e-05/0.00423, allocations: 13.38 kB / 0.8148 GB, free: 14.53 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.192e-05/0.004322, allocations: 20.88 kB / 0.8148 GB, free: 14.51 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001144/0.004437, allocations: 128.5 kB / 0.815 GB, free: 14.36 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.765e-05/0.004454, allocations: 5.531 kB / 0.815 GB, free: 14.35 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.209e-05/0.004476, allocations: 12.36 kB / 0.815 GB, free: 14.34 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001221/0.004598, allocations: 82.84 kB / 0.8151 GB, free: 14.25 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.067e-06/0.004608, allocations: 5.5 kB / 0.8151 GB, free: 14.25 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.365e-06/0.004616, allocations: 4.375 kB / 0.8151 GB, free: 14.24 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.961e-06/0.004622, allocations: 3.938 kB / 0.8151 GB, free: 14.24 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.518e-05/0.004657, allocations: 21.36 kB / 0.8151 GB, free: 14.22 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002962/0.004953, allocations: 284.2 kB / 0.8154 GB, free: 13.91 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001283/0.005082, allocations: 71.53 kB / 0.8154 GB, free: 13.83 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.466e-05/0.005106, allocations: 25.61 kB / 0.8155 GB, free: 13.8 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.451e-05/0.005121, allocations: 4.094 kB / 0.8155 GB, free: 13.8 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001144/0.005235, allocations: 101 kB / 0.8156 GB, free: 13.69 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=11): time 1.423e-06/0.005236, allocations: 2.406 kB / 0.8156 GB, free: 13.69 MB / 0.7761 GB Notification: Performance of matching and sorting (n=11): time 0.0001869/0.005423, allocations: 133.9 kB / 0.8157 GB, free: 13.55 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.235e-05/0.005456, allocations: 55.41 kB / 0.8157 GB, free: 13.48 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.599e-05/0.005522, allocations: 177.8 kB / 0.8159 GB, free: 13.29 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.226e-05/0.005534, allocations: 29.7 kB / 0.8159 GB, free: 13.26 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 4.283e-05/0.005577, allocations: 139 kB / 0.8161 GB, free: 13.12 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.736e-05/0.005604, allocations: 28.36 kB / 0.8161 GB, free: 13.09 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.422e-05/0.005638, allocations: 31.36 kB / 0.8161 GB, free: 13.05 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001156/0.005754, allocations: 0.4942 MB / 0.8166 GB, free: 12.55 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.028e-05/0.005774, allocations: 11.98 kB / 0.8166 GB, free: 12.54 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.87e-05/0.005803, allocations: 31.36 kB / 0.8167 GB, free: 12.5 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.972e-05/0.005853, allocations: 51.41 kB / 0.8167 GB, free: 12.44 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.005854, allocations: 3.938 kB / 0.8167 GB, free: 12.43 MB / 0.7761 GB Notification: Performance of matching and sorting (n=14) (initialization): time 8.512e-05/0.005939, allocations: 87.59 kB / 0.8168 GB, free: 12.34 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.167e-05/0.005951, allocations: 11.94 kB / 0.8168 GB, free: 12.33 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.127e-06/0.005955, allocations: 0 / 0.8168 GB, free: 12.33 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.074e-05/0.005966, allocations: 0 / 0.8168 GB, free: 12.33 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.234e-05/0.006008, allocations: 15.92 kB / 0.8168 GB, free: 12.32 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.655e-06/0.006011, allocations: 0.5625 kB / 0.8168 GB, free: 12.32 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.024e-05/0.006041, allocations: 12.42 kB / 0.8168 GB, free: 12.3 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.222e-06/0.006047, allocations: 8.047 kB / 0.8168 GB, free: 12.3 MB / 0.7761 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.514e-05/0.006112, allocations: 165.5 kB / 0.817 GB, free: 12.12 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.541e-05/0.006128, allocations: 20.66 kB / 0.817 GB, free: 12.11 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.212e-05/0.00615, allocations: 8.438 kB / 0.817 GB, free: 12.1 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.006153, allocations: 5.156 kB / 0.817 GB, free: 12.09 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.563e-06/0.006154, allocations: 0 / 0.817 GB, free: 12.09 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.006157, allocations: 0 / 0.817 GB, free: 12.09 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.929e-05/0.006236, allocations: 122.1 kB / 0.8171 GB, free: 11.95 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.006238, allocations: 0 / 0.8171 GB, free: 11.95 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.335e-05/0.006271, allocations: 15.94 kB / 0.8172 GB, free: 11.93 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.232e-06/0.006272, allocations: 1.406 kB / 0.8172 GB, free: 11.93 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.083e-05/0.006283, allocations: 11.98 kB / 0.8172 GB, free: 11.92 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.006285, allocations: 3.938 kB / 0.8172 GB, free: 11.92 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.006286, allocations: 1.125 kB / 0.8172 GB, free: 11.92 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001597/0.006445, allocations: 176.3 kB / 0.8173 GB, free: 11.72 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 6.362e-06/0.006452, allocations: 3.953 kB / 0.8173 GB, free: 11.72 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.426e-05/0.006466, allocations: 8.922 kB / 0.8174 GB, free: 11.71 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.474e-05/0.006491, allocations: 7.938 kB / 0.8174 GB, free: 11.7 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.424e-05/0.006525, allocations: 17.09 kB / 0.8174 GB, free: 11.69 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.982e-06/0.006531, allocations: 4 kB / 0.8174 GB, free: 11.68 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 3.363e-05/0.006565, allocations: 135.1 kB / 0.8175 GB, free: 11.55 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5e-08/0.006565, allocations: 1.031 kB / 0.8175 GB, free: 11.55 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001264/0.006691, allocations: 16 kB / 0.8175 GB, free: 11.54 MB / 0.7761 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.257e-05/0.006764, allocations: 108.4 kB / 0.8176 GB, free: 11.42 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 8.765e-05/0.006851, allocations: 63.53 kB / 0.8177 GB, free: 11.36 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.006853, allocations: 4.969 kB / 0.8177 GB, free: 11.35 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 4.487e-05/0.006898, allocations: 43.64 kB / 0.8177 GB, free: 11.3 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001265/0.007024, allocations: 18.2 kB / 0.8178 GB, free: 11.29 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004182/0.007443, allocations: 250.2 kB / 0.818 GB, free: 11.04 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.712e-05/0.00747, allocations: 59.34 kB / 0.8181 GB, free: 10.96 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 2.849e-05/0.007498, allocations: 8.734 kB / 0.8181 GB, free: 10.95 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.349e-05/0.007562, allocations: 82.19 kB / 0.8181 GB, free: 10.87 MB / 0.7761 GB Notification: Performance of SimCode: time 7.42e-07/0.007562, allocations: 0 / 0.8181 GB, free: 10.87 MB / 0.7761 GB Notification: Performance of Templates: time 0.002511/0.01007, allocations: 1.238 MB / 0.8193 GB, free: 9.648 MB / 0.7761 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=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 4.983461610041559]