Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001198/0.001198, allocations: 176.4 kB / 17.4 MB, free: 4.422 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.629/1.629, allocations: 223.3 MB / 241.4 MB, free: 9.961 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008233/0.0008234, allocations: 102.2 kB / 292.6 MB, free: 10.53 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002941/0.0002942, allocations: 11.94 kB / 352.3 MB, free: 14.79 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.231/0.2314, allocations: 50.4 MB / 402.7 MB, free: 32.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.111/0.3424, allocations: 87.16 MB / 489.9 MB, free: 9.102 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002828/0.3427, allocations: 79.97 kB / 490 MB, free: 9.023 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2823/0.625, allocations: 26.9 MB / 0.5048 GB, free: 91.4 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.577e-06/0.6251, allocations: 0 / 0.5048 GB, free: 91.4 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000142/0.6252, allocations: 26.81 kB / 0.5048 GB, free: 91.4 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.003533/0.6288, allocations: 1.895 MB / 0.5066 GB, free: 90.33 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.876e-05/0.6288, allocations: 11.25 kB / 0.5067 GB, free: 90.33 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003688/0.6292, allocations: 187.5 kB / 0.5068 GB, free: 90.23 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002911/0.6321, allocations: 1.563 MB / 0.5084 GB, free: 89.77 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001204/0.6323, allocations: 70.39 kB / 0.5084 GB, free: 89.73 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001088/0.6324, allocations: 49.44 kB / 0.5085 GB, free: 89.73 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001046/0.6334, allocations: 0.6012 MB / 0.5091 GB, free: 89.59 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.212e-05/0.6335, allocations: 9.656 kB / 0.5091 GB, free: 89.58 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.253e-05/0.6335, allocations: 22.62 kB / 0.5091 GB, free: 89.58 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.197e-05/0.6336, allocations: 11.28 kB / 0.5091 GB, free: 89.58 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000608/0.6342, allocations: 347.9 kB / 0.5094 GB, free: 89.58 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004064/0.6382, allocations: 3.317 MB / 0.5127 GB, free: 88.52 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001015/0.6393, allocations: 434.6 kB / 0.5131 GB, free: 88.49 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000391/0.6397, allocations: 194.2 kB / 0.5133 GB, free: 88.48 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.685e-05/0.6397, allocations: 9.047 kB / 0.5133 GB, free: 88.48 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.149e-05/0.6398, allocations: 33.56 kB / 0.5133 GB, free: 88.44 MB / 378.7 MB Notification: Performance of pre-optimization done (n=21): time 2.184e-06/0.6398, allocations: 3.219 kB / 0.5133 GB, free: 88.44 MB / 378.7 MB Notification: Performance of matching and sorting (n=21): time 0.001628/0.6414, allocations: 0.6961 MB / 0.514 GB, free: 88.21 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.488e-05/0.6415, allocations: 213.4 kB / 0.5142 GB, free: 87.96 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003242/0.6447, allocations: 2.86 MB / 0.517 GB, free: 87.48 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.378e-05/0.6448, allocations: 29.7 kB / 0.517 GB, free: 87.44 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004878/0.6453, allocations: 0.7799 MB / 0.5178 GB, free: 86.83 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.207e-05/0.6454, allocations: 80.58 kB / 0.5179 GB, free: 86.77 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.373e-05/0.6454, allocations: 7.906 kB / 0.5179 GB, free: 86.77 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.064e-05/0.6454, allocations: 317.6 kB / 0.5182 GB, free: 86.46 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002955/0.6457, allocations: 131.1 kB / 0.5183 GB, free: 86.42 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003491/0.6461, allocations: 301.8 kB / 0.5186 GB, free: 86.19 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000594/0.6467, allocations: 380.1 kB / 0.5189 GB, free: 85.98 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.392e-06/0.6467, allocations: 3.75 kB / 0.5189 GB, free: 85.98 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001261/0.648, allocations: 0.6271 MB / 0.5196 GB, free: 85.76 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.642e-05/0.648, allocations: 5.312 kB / 0.5196 GB, free: 85.76 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.655e-06/0.648, allocations: 7.219 kB / 0.5196 GB, free: 85.76 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002531/0.6483, allocations: 65.27 kB / 0.5196 GB, free: 85.74 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002577/0.6485, allocations: 81.98 kB / 0.5197 GB, free: 85.73 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001139/0.6497, allocations: 1.578 MB / 0.5213 GB, free: 84.28 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005212/0.6502, allocations: 72.44 kB / 0.5213 GB, free: 84.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.219e-05/0.6503, allocations: 16.62 kB / 0.5213 GB, free: 84.25 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 35 * 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 prepare postOptimizeDAE: time 0.0007873/0.6511, allocations: 0.5829 MB / 0.5219 GB, free: 83.98 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000182/0.6512, allocations: 161.9 kB / 0.5221 GB, free: 83.89 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008258/0.6521, allocations: 0.4906 MB / 0.5225 GB, free: 83.71 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.506e-06/0.6521, allocations: 1.688 kB / 0.5225 GB, free: 83.71 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.423e-06/0.6521, allocations: 0 / 0.5225 GB, free: 83.71 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.6521, allocations: 3.609 kB / 0.5225 GB, free: 83.71 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002081/0.6542, allocations: 1.79 MB / 0.5243 GB, free: 82.89 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-06/0.6542, allocations: 0.875 kB / 0.5243 GB, free: 82.89 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002162/0.6544, allocations: 50.67 kB / 0.5243 GB, free: 82.89 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001591/0.6546, allocations: 48.41 kB / 0.5244 GB, free: 82.87 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.325e-05/0.6546, allocations: 7.891 kB / 0.5244 GB, free: 82.87 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001194/0.6558, allocations: 1.528 MB / 0.5259 GB, free: 81.43 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.6558, allocations: 3.5 kB / 0.5259 GB, free: 81.43 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001256/0.6571, allocations: 0.7056 MB / 0.5266 GB, free: 81.05 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007008/0.6578, allocations: 0.497 MB / 0.5271 GB, free: 80.7 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001315/0.658, allocations: 7.375 kB / 0.5271 GB, free: 80.69 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004188/0.6584, allocations: 52.14 kB / 0.5271 GB, free: 80.69 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.241e-05/0.6585, allocations: 35.33 kB / 0.5272 GB, free: 80.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.706e-05/0.6585, allocations: 7.406 kB / 0.5272 GB, free: 80.68 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002479/0.661, allocations: 2.045 MB / 0.5292 GB, free: 79.87 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.661, allocations: 0 / 0.5292 GB, free: 79.87 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008614/0.6619, allocations: 250.8 kB / 0.5294 GB, free: 79.62 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (cell.cell.limIntegrator.y,cell.limIntegrator.y,energy.y) * Number of discrete variables: 1 (cccvCharger.CV) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 17 * 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 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008635/0.6628, allocations: 417.9 kB / 0.5298 GB, free: 79.42 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009617/0.6637, allocations: 457.7 kB / 0.5302 GB, free: 79 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.6637, allocations: 0 / 0.5302 GB, free: 79 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004212/0.6642, allocations: 286.7 kB / 0.5305 GB, free: 78.74 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001091/0.6653, allocations: 205.5 kB / 0.5307 GB, free: 78.56 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004399/0.6697, allocations: 3.454 MB / 0.5341 GB, free: 75.39 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000713/0.6704, allocations: 1.358 MB / 0.5354 GB, free: 74.21 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005066/0.6709, allocations: 251.2 kB / 0.5356 GB, free: 74.02 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001984/0.6711, allocations: 90.7 kB / 0.5357 GB, free: 73.93 MB / 378.7 MB Notification: Performance of SimCode: time 5.71e-07/0.6711, allocations: 4 kB / 0.5357 GB, free: 73.93 MB / 378.7 MB Notification: Performance of Templates: time 0.02429/0.6954, allocations: 16.67 MB / 0.552 GB, free: 59.13 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches