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.001365/0.001365, allocations: 87.58 kB / 20.45 MB, free: 4.121 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.001351/0.001351, allocations: 161 kB / 23.82 MB, free: 0.7539 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.9744/0.9744, allocations: 177.1 MB / 204.2 MB, free: 5.629 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.776/1.776, allocations: 377.9 MB / 0.6236 GB, free: 8.566 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.974e-06/1.974e-06, allocations: 0 / 0.8116 GB, free: 1.734 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.774e-05/2.972e-05, allocations: 7.094 kB / 0.8116 GB, free: 1.727 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.003255/0.003285, allocations: 1.63 MB / 0.8132 GB, free: 104 kB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.0009383/0.004223, allocations: 0.4924 MB / 0.8136 GB, free: 15.61 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.747e-05/0.004301, allocations: 0 / 0.8136 GB, free: 15.61 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 4.294e-05/0.004343, allocations: 3.938 kB / 0.8136 GB, free: 15.6 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 9.18e-05/0.004435, allocations: 25.19 kB / 0.8137 GB, free: 15.58 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.000297/0.004732, allocations: 41.42 kB / 0.8137 GB, free: 15.54 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0001821/0.004914, allocations: 75.77 kB / 0.8138 GB, free: 15.46 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001084/0.005023, allocations: 7.984 kB / 0.8138 GB, free: 15.46 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001831/0.005206, allocations: 43.97 kB / 0.8138 GB, free: 15.41 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001127/0.005319, allocations: 32.45 kB / 0.8139 GB, free: 15.38 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 2.36e-05/0.005342, allocations: 8.844 kB / 0.8139 GB, free: 15.38 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 4.853e-05/0.005391, allocations: 8 kB / 0.8139 GB, free: 15.37 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 2.24e-05/0.005413, allocations: 23.91 kB / 0.8139 GB, free: 15.34 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 3.782e-05/0.005451, allocations: 16.52 kB / 0.8139 GB, free: 15.33 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0001305/0.005581, allocations: 52.44 kB / 0.814 GB, free: 15.28 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.585e-06/0.005584, allocations: 4 kB / 0.814 GB, free: 15.27 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.042e-06/0.005585, allocations: 0.6562 kB / 0.814 GB, free: 15.27 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.779e-06/0.00559, allocations: 1.375 kB / 0.814 GB, free: 15.27 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.0004808/0.006071, allocations: 400.4 kB / 0.8143 GB, free: 14.85 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.868e-05/0.006109, allocations: 8.031 kB / 0.8144 GB, free: 14.84 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001282/0.006237, allocations: 22.64 kB / 0.8144 GB, free: 14.82 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001453/0.006383, allocations: 132.5 kB / 0.8145 GB, free: 14.66 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.237e-05/0.006405, allocations: 4.375 kB / 0.8145 GB, free: 14.66 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.201e-05/0.006427, allocations: 8.375 kB / 0.8145 GB, free: 14.65 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001341/0.006561, allocations: 87.97 kB / 0.8146 GB, free: 14.56 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.682e-06/0.006568, allocations: 192 / 0.8146 GB, free: 14.56 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.199e-05/0.00658, allocations: 8.359 kB / 0.8146 GB, free: 14.55 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.095e-06/0.006588, allocations: 4.438 kB / 0.8146 GB, free: 14.55 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.131e-05/0.006639, allocations: 28.48 kB / 0.8146 GB, free: 14.52 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000355/0.006994, allocations: 300.2 kB / 0.8149 GB, free: 14.19 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001823/0.007177, allocations: 80.09 kB / 0.815 GB, free: 14.1 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.785e-05/0.007214, allocations: 27.67 kB / 0.815 GB, free: 14.07 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.134e-05/0.007226, allocations: 0.875 kB / 0.815 GB, free: 14.07 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001424/0.007368, allocations: 115.1 kB / 0.8151 GB, free: 13.95 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=11): time 1.513e-06/0.00737, allocations: 0 / 0.8151 GB, free: 13.95 MB / 0.7761 GB Notification: Performance of matching and sorting (n=11): time 0.0002461/0.007616, allocations: 145.6 kB / 0.8153 GB, free: 13.8 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.515e-05/0.007651, allocations: 51.41 kB / 0.8153 GB, free: 13.73 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.387e-05/0.007725, allocations: 173.9 kB / 0.8155 GB, free: 13.55 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.445e-05/0.007739, allocations: 34.17 kB / 0.8155 GB, free: 13.51 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 4.089e-05/0.00778, allocations: 139.8 kB / 0.8157 GB, free: 13.37 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 5.336e-05/0.007834, allocations: 27.98 kB / 0.8157 GB, free: 13.34 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.491e-05/0.007878, allocations: 31.88 kB / 0.8157 GB, free: 13.3 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001054/0.007984, allocations: 0.4892 MB / 0.8162 GB, free: 12.8 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.706e-05/0.008021, allocations: 19.92 kB / 0.8162 GB, free: 12.78 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.539e-05/0.008066, allocations: 36.3 kB / 0.8162 GB, free: 12.74 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.148e-05/0.008138, allocations: 51.38 kB / 0.8163 GB, free: 12.68 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.00814, allocations: 0 / 0.8163 GB, free: 12.68 MB / 0.7761 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001147/0.008254, allocations: 107.1 kB / 0.8164 GB, free: 12.57 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.331e-05/0.008268, allocations: 4 kB / 0.8164 GB, free: 12.57 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.008272, allocations: 0 / 0.8164 GB, free: 12.57 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.341e-05/0.008285, allocations: 4.969 kB / 0.8164 GB, free: 12.56 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.982e-05/0.008345, allocations: 15.92 kB / 0.8164 GB, free: 12.55 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.008351, allocations: 0 / 0.8164 GB, free: 12.55 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.651e-05/0.008387, allocations: 14.2 kB / 0.8164 GB, free: 12.54 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.528e-06/0.008397, allocations: 15.92 kB / 0.8164 GB, free: 12.52 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.222e-05/0.008469, allocations: 160.6 kB / 0.8166 GB, free: 12.35 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.721e-05/0.008486, allocations: 19.88 kB / 0.8166 GB, free: 12.33 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.106e-05/0.008507, allocations: 8.438 kB / 0.8166 GB, free: 12.32 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.008511, allocations: 11.31 kB / 0.8166 GB, free: 12.32 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.008514, allocations: 0 / 0.8166 GB, free: 12.32 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.008517, allocations: 0 / 0.8166 GB, free: 12.32 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.799e-05/0.008605, allocations: 136.6 kB / 0.8168 GB, free: 12.15 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.008606, allocations: 0 / 0.8168 GB, free: 12.15 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.328e-05/0.008649, allocations: 15.92 kB / 0.8168 GB, free: 12.13 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.008652, allocations: 3.938 kB / 0.8168 GB, free: 12.13 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.246e-05/0.008665, allocations: 4 kB / 0.8168 GB, free: 12.12 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.008666, allocations: 1.031 kB / 0.8168 GB, free: 12.12 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.008667, allocations: 0 / 0.8168 GB, free: 12.12 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002114/0.008878, allocations: 188.3 kB / 0.817 GB, free: 11.92 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 8.967e-06/0.008887, allocations: 9.016 kB / 0.817 GB, free: 11.91 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.026e-05/0.008908, allocations: 11.94 kB / 0.817 GB, free: 11.9 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.444e-05/0.008932, allocations: 3.984 kB / 0.817 GB, free: 11.89 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.615e-05/0.008978, allocations: 16.97 kB / 0.817 GB, free: 11.88 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.625e-06/0.008986, allocations: 8 kB / 0.817 GB, free: 11.87 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 3.855e-05/0.009024, allocations: 131.8 kB / 0.8171 GB, free: 11.74 MB / 0.7761 GB Notification: Performance of sort global known variables: time 6.1e-08/0.009024, allocations: 3.938 kB / 0.8171 GB, free: 11.74 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001323/0.009157, allocations: 21.62 kB / 0.8172 GB, free: 11.72 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 8.018e-05/0.009237, allocations: 95.25 kB / 0.8173 GB, free: 11.62 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0001304/0.009367, allocations: 76.67 kB / 0.8173 GB, free: 11.54 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.009369, allocations: 0 / 0.8173 GB, free: 11.54 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 5.818e-05/0.009427, allocations: 47.66 kB / 0.8174 GB, free: 11.49 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001483/0.009575, allocations: 21.02 kB / 0.8174 GB, free: 11.47 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000544/0.01012, allocations: 246.1 kB / 0.8176 GB, free: 11.21 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.277e-05/0.01015, allocations: 63.34 kB / 0.8177 GB, free: 11.13 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 3.189e-05/0.01018, allocations: 12.72 kB / 0.8177 GB, free: 11.12 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.556e-05/0.01022, allocations: 12.5 kB / 0.8177 GB, free: 11.11 MB / 0.7761 GB Notification: Performance of SimCode: time 1.092e-06/0.01022, allocations: 0 / 0.8177 GB, free: 11.11 MB / 0.7761 GB Notification: Performance of Templates: time 0.002993/0.01321, allocations: 1.189 MB / 0.8189 GB, free: 9.945 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.124479830265045]