Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|cell.cell.capacitor.1..v|cell.cell.capacitor.2..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|cell.cell.capacitor.1..v|cell.cell.capacitor.2..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001506/0.001506, allocations: 182 kB / 8.132 MB, free: 2.168 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.252/1.252, allocations: 221.4 MB / 229.9 MB, free: 3.012 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008685/0.0008685, allocations: 97.11 kB / 280.8 MB, free: 1.301 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.711e-06/5.751e-06, allocations: 0 / 336.5 MB, free: 9.578 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.207/0.2071, allocations: 50.4 MB / 386.9 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09174/0.2988, allocations: 88.96 MB / 475.9 MB, free: 13.85 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001921/0.2991, allocations: 87.89 kB / 475.9 MB, free: 13.76 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.2242/0.5233, allocations: 34.07 MB / 0.4981 GB, free: 93.38 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000106/0.5234, allocations: 27.34 kB / 0.4981 GB, free: 93.38 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.001919/0.5253, allocations: 1.663 MB / 0.4997 GB, free: 92.48 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.649e-05/0.5254, allocations: 12.95 kB / 0.4997 GB, free: 92.48 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002453/0.5256, allocations: 210.2 kB / 0.4999 GB, free: 92.37 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002297/0.5279, allocations: 1.664 MB / 0.5016 GB, free: 91.93 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.725e-05/0.528, allocations: 57.27 kB / 0.5016 GB, free: 91.89 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.037e-05/0.5281, allocations: 37.78 kB / 0.5016 GB, free: 91.89 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006904/0.5288, allocations: 457.5 kB / 0.5021 GB, free: 91.89 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008805/0.5297, allocations: 0.6759 MB / 0.5027 GB, free: 91.73 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.696e-05/0.5297, allocations: 1.031 kB / 0.5027 GB, free: 91.73 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.62e-05/0.5298, allocations: 3.531 kB / 0.5027 GB, free: 91.73 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.341e-05/0.5298, allocations: 17.33 kB / 0.5028 GB, free: 91.73 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004811/0.5346, allocations: 3.94 MB / 0.5066 GB, free: 90.7 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003588/0.535, allocations: 245.7 kB / 0.5068 GB, free: 90.68 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004768/0.5355, allocations: 318 kB / 0.5072 GB, free: 90.67 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.134e-05/0.5355, allocations: 5.625 kB / 0.5072 GB, free: 90.67 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.427e-05/0.5356, allocations: 38.12 kB / 0.5072 GB, free: 90.63 MB / 378.7 MB Notification: Performance of pre-optimization done (n=33): time 2.144e-06/0.5356, allocations: 3.812 kB / 0.5072 GB, free: 90.63 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.0007318/0.5363, allocations: 482.3 kB / 0.5077 GB, free: 90.5 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.237e-05/0.5364, allocations: 274.8 kB / 0.5079 GB, free: 90.18 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002894/0.5393, allocations: 2.723 MB / 0.5106 GB, free: 89.41 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.609e-05/0.5394, allocations: 27.95 kB / 0.5106 GB, free: 89.38 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002645/0.5396, allocations: 468.7 kB / 0.5111 GB, free: 89.09 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.841e-05/0.5397, allocations: 107.6 kB / 0.5112 GB, free: 89.01 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.041e-05/0.5397, allocations: 0 / 0.5112 GB, free: 89.01 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.688e-05/0.5398, allocations: 324 kB / 0.5115 GB, free: 88.7 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002052/0.54, allocations: 161.2 kB / 0.5116 GB, free: 88.63 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002653/0.5403, allocations: 336 kB / 0.5119 GB, free: 88.36 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002389/0.5405, allocations: 203.8 kB / 0.5121 GB, free: 88.29 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.5405, allocations: 0 / 0.5121 GB, free: 88.29 MB / 378.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0008272/0.5414, allocations: 0.6454 MB / 0.5128 GB, free: 88 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.325e-05/0.5414, allocations: 3.938 kB / 0.5128 GB, free: 88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.185e-06/0.5414, allocations: 11.53 kB / 0.5128 GB, free: 88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002285/0.5416, allocations: 59.23 kB / 0.5128 GB, free: 87.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004647/0.5421, allocations: 118.8 kB / 0.5129 GB, free: 87.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001087/0.5432, allocations: 1.519 MB / 0.5144 GB, free: 86.58 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005816/0.5438, allocations: 67.81 kB / 0.5145 GB, free: 86.56 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.159e-05/0.5438, allocations: 16.69 kB / 0.5145 GB, free: 86.56 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: cccvCharger.v:VARIABLE(unit = "V" ) "Voltage drop of the two pins (= p.v - n.v)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 4 (cccvCharger.CV,energy.local_reset,cell.limIntegrator.local_reset,cell.cell.limIntegrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.000136/0.544, allocations: 123.3 kB / 0.5146 GB, free: 86.45 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001878/0.5442, allocations: 177.2 kB / 0.5148 GB, free: 86.35 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007381/0.5449, allocations: 0.5304 MB / 0.5153 GB, free: 86.13 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.456e-06/0.5449, allocations: 3.875 kB / 0.5153 GB, free: 86.13 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.332e-06/0.5449, allocations: 0 / 0.5153 GB, free: 86.13 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.545, allocations: 3.891 kB / 0.5153 GB, free: 86.13 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002289/0.5472, allocations: 2.024 MB / 0.5173 GB, free: 85.21 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.5473, allocations: 0 / 0.5173 GB, free: 85.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004316/0.5477, allocations: 83.28 kB / 0.5174 GB, free: 85.21 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001561/0.5479, allocations: 59.08 kB / 0.5174 GB, free: 85.19 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.869e-05/0.5479, allocations: 2.781 kB / 0.5174 GB, free: 85.19 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00107/0.549, allocations: 1.473 MB / 0.5189 GB, free: 83.81 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.549, allocations: 1.062 kB / 0.5189 GB, free: 83.81 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001163/0.5502, allocations: 0.8203 MB / 0.5197 GB, free: 83.32 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007827/0.551, allocations: 0.7583 MB / 0.5204 GB, free: 82.71 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002019/0.5512, allocations: 3.281 kB / 0.5204 GB, free: 82.71 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006208/0.5518, allocations: 66.33 kB / 0.5205 GB, free: 82.71 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.962e-05/0.5519, allocations: 34.89 kB / 0.5205 GB, free: 82.71 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.662e-05/0.5519, allocations: 18.06 kB / 0.5205 GB, free: 82.71 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.002407/0.5544, allocations: 2.066 MB / 0.5226 GB, free: 81.59 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009019/0.5553, allocations: 262.8 kB / 0.5228 GB, free: 81.34 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (cell.cell.limIntegrator.y,cell.cell.capacitor[1].v,cell.cell.capacitor[2].v,cell.limIntegrator.y,energy.y) * Number of discrete variables: 1 (cccvCharger.CV) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008146/0.5561, allocations: 351.4 kB / 0.5231 GB, free: 81.12 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007851/0.5569, allocations: 0.4928 MB / 0.5236 GB, free: 80.66 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.5569, allocations: 0 / 0.5236 GB, free: 80.66 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003646/0.5573, allocations: 297.5 kB / 0.5239 GB, free: 80.39 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008521/0.5581, allocations: 231 kB / 0.5241 GB, free: 80.18 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005576/0.5637, allocations: 3.025 MB / 0.5271 GB, free: 77.47 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001261/0.565, allocations: 1.619 MB / 0.5287 GB, free: 76.11 MB / 378.7 MB Notification: Performance of SimCode: time 6.31e-07/0.565, allocations: 0 / 0.5287 GB, free: 76.11 MB / 378.7 MB Notification: Performance of Templates: time 0.02424/0.5893, allocations: 12.78 MB / 0.5411 GB, free: 65.72 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches