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.001063/0.001063, allocations: 87.58 kB / 20.45 MB, free: 4.117 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.001089/0.001089, allocations: 161 kB / 23.82 MB, free: 0.75 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.074/1.074, allocations: 177.1 MB / 204.2 MB, free: 5.258 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.86/1.86, allocations: 377.8 MB / 0.6236 GB, free: 8.543 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.824e-06/1.824e-06, allocations: 0 / 0.8115 GB, free: 1.688 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.821e-05/3.004e-05, allocations: 8.641 kB / 0.8116 GB, free: 1.68 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002861/0.002891, allocations: 1.636 MB / 0.8131 GB, free: 52 kB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.0009496/0.00384, allocations: 0.4898 MB / 0.8136 GB, free: 15.56 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.837e-05/0.003909, allocations: 0 / 0.8136 GB, free: 15.56 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 3.841e-05/0.003947, allocations: 3.938 kB / 0.8136 GB, free: 15.55 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 7.946e-05/0.004027, allocations: 13.19 kB / 0.8136 GB, free: 15.54 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002592/0.004286, allocations: 47.81 kB / 0.8137 GB, free: 15.5 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0001227/0.004409, allocations: 72.45 kB / 0.8138 GB, free: 15.43 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 9.987e-05/0.004508, allocations: 11.98 kB / 0.8138 GB, free: 15.41 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001448/0.004653, allocations: 48.8 kB / 0.8138 GB, free: 15.37 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 6.68e-05/0.00472, allocations: 23.95 kB / 0.8138 GB, free: 15.34 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 1.845e-05/0.004738, allocations: 8.656 kB / 0.8138 GB, free: 15.34 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 4.198e-05/0.00478, allocations: 12 kB / 0.8139 GB, free: 15.32 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 1.827e-05/0.004799, allocations: 16.61 kB / 0.8139 GB, free: 15.31 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 3.771e-05/0.004836, allocations: 29.16 kB / 0.8139 GB, free: 15.28 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0002672/0.005103, allocations: 51.81 kB / 0.814 GB, free: 15.23 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.124e-06/0.005106, allocations: 0 / 0.814 GB, free: 15.23 MB / 0.7761 GB Notification: Performance of FrontEnd: time 6.61e-07/0.005106, allocations: 0 / 0.814 GB, free: 15.23 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.087e-06/0.00511, allocations: 2.125 kB / 0.814 GB, free: 15.23 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.0004258/0.005536, allocations: 400.4 kB / 0.8143 GB, free: 14.8 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.638e-05/0.005573, allocations: 8.031 kB / 0.8143 GB, free: 14.8 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001123/0.005685, allocations: 24.88 kB / 0.8144 GB, free: 14.77 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000144/0.005829, allocations: 129.4 kB / 0.8145 GB, free: 14.62 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.132e-05/0.00585, allocations: 8.312 kB / 0.8145 GB, free: 14.61 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.909e-05/0.005879, allocations: 5.906 kB / 0.8145 GB, free: 14.61 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001477/0.006027, allocations: 90.84 kB / 0.8146 GB, free: 14.51 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.163e-06/0.006034, allocations: 192 / 0.8146 GB, free: 14.51 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.085e-05/0.006045, allocations: 384 / 0.8146 GB, free: 14.51 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.729e-06/0.006055, allocations: 8.938 kB / 0.8146 GB, free: 14.5 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.264e-05/0.006107, allocations: 23.97 kB / 0.8146 GB, free: 14.48 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003842/0.006492, allocations: 304.3 kB / 0.8149 GB, free: 14.15 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001909/0.006682, allocations: 80.09 kB / 0.815 GB, free: 14.06 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.93e-05/0.006722, allocations: 31.67 kB / 0.815 GB, free: 14.02 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.675e-05/0.006738, allocations: 0 / 0.815 GB, free: 14.02 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001491/0.006888, allocations: 114.5 kB / 0.8151 GB, free: 13.9 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=11): time 1.132e-06/0.006889, allocations: 0.5312 kB / 0.8151 GB, free: 13.9 MB / 0.7761 GB Notification: Performance of matching and sorting (n=11): time 0.0002638/0.007152, allocations: 146.1 kB / 0.8153 GB, free: 13.75 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.086e-05/0.007193, allocations: 59.41 kB / 0.8153 GB, free: 13.68 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.109e-05/0.007274, allocations: 166.5 kB / 0.8155 GB, free: 13.5 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.522e-05/0.00729, allocations: 33.7 kB / 0.8155 GB, free: 13.46 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 5.07e-05/0.00734, allocations: 135.8 kB / 0.8156 GB, free: 13.32 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 3.263e-05/0.007373, allocations: 23.86 kB / 0.8157 GB, free: 13.3 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.921e-05/0.007412, allocations: 40.27 kB / 0.8157 GB, free: 13.25 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001216/0.007534, allocations: 0.4883 MB / 0.8162 GB, free: 12.75 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.207e-05/0.007566, allocations: 16.53 kB / 0.8162 GB, free: 12.74 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.222e-05/0.007608, allocations: 36.73 kB / 0.8162 GB, free: 12.7 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.614e-05/0.007674, allocations: 47.36 kB / 0.8163 GB, free: 12.64 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.007676, allocations: 0 / 0.8163 GB, free: 12.64 MB / 0.7761 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001138/0.00779, allocations: 105.9 kB / 0.8164 GB, free: 12.53 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.364e-05/0.007804, allocations: 5.281 kB / 0.8164 GB, free: 12.53 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.418e-06/0.007808, allocations: 0 / 0.8164 GB, free: 12.53 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.814e-05/0.007826, allocations: 0 / 0.8164 GB, free: 12.53 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.404e-05/0.00788, allocations: 20.59 kB / 0.8164 GB, free: 12.51 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.635e-06/0.007888, allocations: 4 kB / 0.8164 GB, free: 12.5 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.995e-05/0.007928, allocations: 16.59 kB / 0.8164 GB, free: 12.49 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.305e-06/0.007936, allocations: 7.984 kB / 0.8164 GB, free: 12.48 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.633e-05/0.008012, allocations: 162.1 kB / 0.8166 GB, free: 12.31 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.736e-05/0.00803, allocations: 19.89 kB / 0.8166 GB, free: 12.29 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.036e-05/0.00806, allocations: 12.42 kB / 0.8166 GB, free: 12.28 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-06/0.008063, allocations: 0.5938 kB / 0.8166 GB, free: 12.28 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.125e-06/0.008066, allocations: 0.5938 kB / 0.8166 GB, free: 12.28 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.008069, allocations: 4 kB / 0.8166 GB, free: 12.28 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.247e-05/0.008161, allocations: 142.6 kB / 0.8168 GB, free: 12.11 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.008162, allocations: 0 / 0.8168 GB, free: 12.11 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.569e-05/0.008198, allocations: 8 kB / 0.8168 GB, free: 12.1 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.008202, allocations: 7.875 kB / 0.8168 GB, free: 12.09 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.13e-05/0.008213, allocations: 3.984 kB / 0.8168 GB, free: 12.09 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.81e-07/0.008214, allocations: 4.875 kB / 0.8168 GB, free: 12.08 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.008214, allocations: 0 / 0.8168 GB, free: 12.08 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002133/0.008428, allocations: 191.8 kB / 0.817 GB, free: 11.88 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 9.538e-06/0.008437, allocations: 11.94 kB / 0.817 GB, free: 11.86 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.81e-05/0.008455, allocations: 7.938 kB / 0.817 GB, free: 11.86 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.299e-05/0.008478, allocations: 4 kB / 0.817 GB, free: 11.85 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.244e-05/0.008531, allocations: 15.97 kB / 0.817 GB, free: 11.84 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.356e-06/0.008539, allocations: 7.984 kB / 0.817 GB, free: 11.83 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 4.236e-05/0.008581, allocations: 131.2 kB / 0.8171 GB, free: 11.7 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5e-08/0.008581, allocations: 0 / 0.8171 GB, free: 11.7 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001317/0.008713, allocations: 16 kB / 0.8172 GB, free: 11.68 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.05e-05/0.008804, allocations: 109.5 kB / 0.8173 GB, free: 11.57 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0001464/0.00895, allocations: 71.59 kB / 0.8173 GB, free: 11.5 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.322e-06/0.008951, allocations: 3.938 kB / 0.8173 GB, free: 11.49 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 6.073e-05/0.009012, allocations: 47.66 kB / 0.8174 GB, free: 11.44 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001574/0.00917, allocations: 16.89 kB / 0.8174 GB, free: 11.43 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005581/0.009728, allocations: 249.5 kB / 0.8176 GB, free: 11.17 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.164e-05/0.009759, allocations: 63.34 kB / 0.8177 GB, free: 11.09 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 3.063e-05/0.00979, allocations: 9.484 kB / 0.8177 GB, free: 11.09 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.722e-05/0.009827, allocations: 12.5 kB / 0.8177 GB, free: 11.07 MB / 0.7761 GB Notification: Performance of SimCode: time 5.51e-07/0.009828, allocations: 0 / 0.8177 GB, free: 11.07 MB / 0.7761 GB Notification: Performance of Templates: time 0.002802/0.01263, allocations: 1.136 MB / 0.8188 GB, free: 9.973 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.532746602781117]