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.001068/0.001068, allocations: 71.75 kB / 20.97 MB, free: 3.578 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.00149/0.00149, allocations: 169 kB / 24.28 MB, free: 276 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 1.024/1.024, allocations: 177.1 MB / 204.6 MB, free: 5.633 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.87/1.87, allocations: 377.8 MB / 0.6239 GB, free: 8.555 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.693e-06/1.693e-06, allocations: 0 / 0.8115 GB, free: 2.047 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.043e-05/3.212e-05, allocations: 2.312 kB / 0.8115 GB, free: 2.043 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002211/0.002243, allocations: 1.633 MB / 0.8131 GB, free: 432 kB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.0007095/0.002952, allocations: 500 kB / 0.8136 GB, free: 15.93 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.101e-05/0.003013, allocations: 0 / 0.8136 GB, free: 15.93 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 2.787e-05/0.003041, allocations: 5.531 kB / 0.8136 GB, free: 15.93 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 7.031e-05/0.003112, allocations: 7.875 kB / 0.8136 GB, free: 15.92 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.000237/0.003349, allocations: 52.28 kB / 0.8137 GB, free: 15.87 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0001205/0.003469, allocations: 71.83 kB / 0.8137 GB, free: 15.8 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 9.548e-05/0.003565, allocations: 12.7 kB / 0.8138 GB, free: 15.79 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001461/0.003711, allocations: 48.42 kB / 0.8138 GB, free: 15.74 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 6.846e-05/0.003779, allocations: 33.39 kB / 0.8138 GB, free: 15.71 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 1.837e-05/0.003797, allocations: 4 kB / 0.8138 GB, free: 15.7 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 4.098e-05/0.003838, allocations: 8 kB / 0.8138 GB, free: 15.7 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 1.757e-05/0.003856, allocations: 11.98 kB / 0.8139 GB, free: 15.68 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 4.133e-05/0.003897, allocations: 28.44 kB / 0.8139 GB, free: 15.66 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0001358/0.004033, allocations: 59.75 kB / 0.8139 GB, free: 15.6 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.004036, allocations: 1.344 kB / 0.8139 GB, free: 15.6 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.082e-06/0.004037, allocations: 0 / 0.8139 GB, free: 15.6 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.298e-06/0.004042, allocations: 0 / 0.8139 GB, free: 15.6 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.0005273/0.004569, allocations: 397.5 kB / 0.8143 GB, free: 15.18 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.408e-05/0.004613, allocations: 12.03 kB / 0.8143 GB, free: 15.16 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000141/0.004754, allocations: 26.25 kB / 0.8144 GB, free: 15.14 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001717/0.004926, allocations: 124.5 kB / 0.8145 GB, free: 14.99 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.233e-05/0.004948, allocations: 8.297 kB / 0.8145 GB, free: 14.98 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.243e-05/0.00497, allocations: 8.375 kB / 0.8145 GB, free: 14.98 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001486/0.005119, allocations: 88.34 kB / 0.8146 GB, free: 14.88 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.154e-06/0.005126, allocations: 192 / 0.8146 GB, free: 14.88 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.046e-05/0.005137, allocations: 384 / 0.8146 GB, free: 14.88 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/0.005145, allocations: 4.438 kB / 0.8146 GB, free: 14.88 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.344e-05/0.005199, allocations: 27.97 kB / 0.8146 GB, free: 14.85 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003683/0.005567, allocations: 305 kB / 0.8149 GB, free: 14.52 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001847/0.005752, allocations: 79.03 kB / 0.815 GB, free: 14.43 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.974e-05/0.005791, allocations: 28.8 kB / 0.815 GB, free: 14.4 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.399e-05/0.005805, allocations: 4 kB / 0.815 GB, free: 14.39 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00015/0.005955, allocations: 110.9 kB / 0.8151 GB, free: 14.27 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=11): time 1.683e-06/0.005957, allocations: 0 / 0.8151 GB, free: 14.27 MB / 0.7761 GB Notification: Performance of matching and sorting (n=11): time 0.0002538/0.006211, allocations: 145.5 kB / 0.8153 GB, free: 14.12 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.077e-05/0.006252, allocations: 57.81 kB / 0.8153 GB, free: 14.06 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.895e-05/0.006341, allocations: 169.9 kB / 0.8155 GB, free: 13.88 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.674e-05/0.006357, allocations: 29.7 kB / 0.8155 GB, free: 13.84 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 5.233e-05/0.00641, allocations: 143 kB / 0.8156 GB, free: 13.7 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.833e-05/0.006438, allocations: 19.86 kB / 0.8157 GB, free: 13.68 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.023e-05/0.006478, allocations: 35.36 kB / 0.8157 GB, free: 13.63 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.000373/0.006851, allocations: 0.4889 MB / 0.8162 GB, free: 13.13 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.105e-05/0.006882, allocations: 15.92 kB / 0.8162 GB, free: 13.12 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.302e-05/0.006925, allocations: 41.3 kB / 0.8162 GB, free: 13.07 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.608e-05/0.007001, allocations: 55.73 kB / 0.8163 GB, free: 13.01 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.007003, allocations: 0 / 0.8163 GB, free: 13.01 MB / 0.7761 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001159/0.007119, allocations: 97.44 kB / 0.8164 GB, free: 12.91 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.452e-05/0.007134, allocations: 8 kB / 0.8164 GB, free: 12.9 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.77e-06/0.007139, allocations: 2.031 kB / 0.8164 GB, free: 12.9 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.007152, allocations: 0 / 0.8164 GB, free: 12.9 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.365e-05/0.007206, allocations: 12 kB / 0.8164 GB, free: 12.89 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.003e-06/0.007213, allocations: 3.938 kB / 0.8164 GB, free: 12.88 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.601e-05/0.007249, allocations: 15.88 kB / 0.8164 GB, free: 12.87 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.133e-06/0.007256, allocations: 4.562 kB / 0.8164 GB, free: 12.86 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 7.828e-05/0.007334, allocations: 161.5 kB / 0.8166 GB, free: 12.7 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.816e-05/0.007352, allocations: 19.89 kB / 0.8166 GB, free: 12.68 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.065e-05/0.007383, allocations: 21.23 kB / 0.8166 GB, free: 12.66 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.007385, allocations: 0 / 0.8166 GB, free: 12.66 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.007388, allocations: 1.156 kB / 0.8166 GB, free: 12.66 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.007393, allocations: 0 / 0.8166 GB, free: 12.66 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000101/0.007494, allocations: 148.7 kB / 0.8167 GB, free: 12.48 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.007496, allocations: 0.8438 kB / 0.8167 GB, free: 12.48 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.558e-05/0.007541, allocations: 8 kB / 0.8168 GB, free: 12.47 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.007544, allocations: 11.16 kB / 0.8168 GB, free: 12.46 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.197e-05/0.007556, allocations: 7.922 kB / 0.8168 GB, free: 12.45 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.007558, allocations: 3.984 kB / 0.8168 GB, free: 12.45 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.007559, allocations: 0 / 0.8168 GB, free: 12.45 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002186/0.007778, allocations: 184.3 kB / 0.817 GB, free: 12.25 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 7.724e-06/0.007786, allocations: 3.953 kB / 0.817 GB, free: 12.24 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.954e-05/0.007805, allocations: 15.92 kB / 0.817 GB, free: 12.23 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.803e-05/0.007833, allocations: 7.938 kB / 0.817 GB, free: 12.22 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.881e-05/0.007892, allocations: 18.38 kB / 0.817 GB, free: 12.2 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.616e-06/0.007901, allocations: 7.984 kB / 0.817 GB, free: 12.2 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 3.915e-05/0.00794, allocations: 127.2 kB / 0.8171 GB, free: 12.07 MB / 0.7761 GB Notification: Performance of sort global known variables: time 6e-08/0.00794, allocations: 4 kB / 0.8171 GB, free: 12.07 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001342/0.008074, allocations: 16 kB / 0.8171 GB, free: 12.05 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 9.766e-05/0.008172, allocations: 108.1 kB / 0.8172 GB, free: 11.94 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0001353/0.008307, allocations: 67.66 kB / 0.8173 GB, free: 11.87 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.008308, allocations: 1.125 kB / 0.8173 GB, free: 11.87 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 5.794e-05/0.008366, allocations: 55.59 kB / 0.8174 GB, free: 11.81 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00016/0.008526, allocations: 13.02 kB / 0.8174 GB, free: 11.8 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006001/0.009126, allocations: 244.5 kB / 0.8176 GB, free: 11.54 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.537e-05/0.009162, allocations: 67.34 kB / 0.8177 GB, free: 11.46 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 3.574e-05/0.009197, allocations: 8.719 kB / 0.8177 GB, free: 11.45 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.501e-05/0.009232, allocations: 12.5 kB / 0.8177 GB, free: 11.44 MB / 0.7761 GB Notification: Performance of SimCode: time 9.72e-07/0.009233, allocations: 4 kB / 0.8177 GB, free: 11.43 MB / 0.7761 GB Notification: Performance of Templates: time 0.002909/0.01214, allocations: 1.147 MB / 0.8188 GB, free: 10.32 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: 5.27964829816483]