Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_Cell.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_cpp_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_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_Cell") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001133/0.001133, allocations: 198.8 kB / 18.07 MB, free: 3.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.298/1.298, allocations: 226.5 MB / 245.4 MB, free: 8.195 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007196/0.0007197, allocations: 96.81 kB / 297.4 MB, free: 6.914 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000198/0.0001981, allocations: 4 kB / 357.4 MB, free: 10.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2/0.2002, allocations: 51.28 MB / 408.7 MB, free: 27.76 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1003/0.3005, allocations: 88.27 MB / 496.9 MB, free: 3.363 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002386/0.3008, allocations: 87.94 kB / 497 MB, free: 3.277 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2329/0.5337, allocations: 27.69 MB / 0.5124 GB, free: 89.56 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.5338, allocations: 6 kB / 0.5124 GB, free: 89.56 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001437/0.5339, allocations: 23.5 kB / 0.5124 GB, free: 89.56 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.00306/0.537, allocations: 1.909 MB / 0.5143 GB, free: 88.48 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.492e-05/0.537, allocations: 7.875 kB / 0.5143 GB, free: 88.48 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003669/0.5374, allocations: 191.5 kB / 0.5145 GB, free: 88.38 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002524/0.5399, allocations: 1.579 MB / 0.516 GB, free: 87.91 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001029/0.5401, allocations: 69.23 kB / 0.5161 GB, free: 87.87 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000104/0.5402, allocations: 46.88 kB / 0.5161 GB, free: 87.87 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00112/0.5413, allocations: 0.6069 MB / 0.5167 GB, free: 87.71 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.039e-05/0.5413, allocations: 0 / 0.5167 GB, free: 87.71 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.977e-05/0.5414, allocations: 24.47 kB / 0.5168 GB, free: 87.71 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.231e-05/0.5414, allocations: 11.69 kB / 0.5168 GB, free: 87.71 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008094/0.5422, allocations: 352.1 kB / 0.5171 GB, free: 87.7 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004377/0.5466, allocations: 3.327 MB / 0.5203 GB, free: 85.86 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001039/0.5477, allocations: 421.9 kB / 0.5208 GB, free: 85.73 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004048/0.5481, allocations: 197.6 kB / 0.5209 GB, free: 85.67 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.509e-05/0.5482, allocations: 6.109 kB / 0.5209 GB, free: 85.67 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.228e-05/0.5482, allocations: 39.84 kB / 0.521 GB, free: 85.62 MB / 378.7 MB Notification: Performance of pre-optimization done (n=21): time 2.345e-06/0.5482, allocations: 0 / 0.521 GB, free: 85.62 MB / 378.7 MB Notification: Performance of matching and sorting (n=21): time 0.001563/0.5498, allocations: 0.6976 MB / 0.5217 GB, free: 85.29 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.123e-05/0.5498, allocations: 212.3 kB / 0.5219 GB, free: 85.04 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003977/0.5538, allocations: 2.879 MB / 0.5247 GB, free: 84.11 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.314e-05/0.5539, allocations: 33.08 kB / 0.5247 GB, free: 84.07 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004911/0.5544, allocations: 0.7755 MB / 0.5255 GB, free: 83.47 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.279e-05/0.5544, allocations: 79.05 kB / 0.5255 GB, free: 83.41 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.665e-05/0.5544, allocations: 4 kB / 0.5255 GB, free: 83.41 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.544e-05/0.5545, allocations: 325.3 kB / 0.5259 GB, free: 83.09 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003283/0.5548, allocations: 129.6 kB / 0.526 GB, free: 83.05 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003613/0.5552, allocations: 299.9 kB / 0.5263 GB, free: 82.81 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006051/0.5558, allocations: 374.9 kB / 0.5266 GB, free: 82.57 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.5558, allocations: 7.312 kB / 0.5266 GB, free: 82.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.00131/0.5571, allocations: 0.6239 MB / 0.5272 GB, free: 82.26 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/0.5572, allocations: 4 kB / 0.5272 GB, free: 82.26 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.5572, allocations: 7.938 kB / 0.5273 GB, free: 82.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002502/0.5574, allocations: 68.05 kB / 0.5273 GB, free: 82.19 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002769/0.5577, allocations: 86.61 kB / 0.5274 GB, free: 82.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001179/0.5589, allocations: 1.575 MB / 0.5289 GB, free: 80.47 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005056/0.5594, allocations: 62.34 kB / 0.529 GB, free: 80.42 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.408e-05/0.5595, allocations: 16 kB / 0.529 GB, free: 80.4 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.0005887/0.5601, allocations: 0.5905 MB / 0.5296 GB, free: 79.86 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002234/0.5603, allocations: 165.9 kB / 0.5297 GB, free: 79.7 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008662/0.5612, allocations: 499.6 kB / 0.5302 GB, free: 79.27 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.945e-06/0.5612, allocations: 4 kB / 0.5302 GB, free: 79.26 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.694e-06/0.5612, allocations: 0 / 0.5302 GB, free: 79.26 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.5612, allocations: 0 / 0.5302 GB, free: 79.26 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002269/0.5635, allocations: 1.795 MB / 0.532 GB, free: 77.79 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.5635, allocations: 0 / 0.532 GB, free: 77.79 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002216/0.5637, allocations: 55.34 kB / 0.532 GB, free: 77.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000149/0.5639, allocations: 52.39 kB / 0.5321 GB, free: 77.7 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.137e-05/0.5639, allocations: 7.938 kB / 0.5321 GB, free: 77.69 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001011/0.5649, allocations: 1.528 MB / 0.5336 GB, free: 76.1 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.5649, allocations: 0 / 0.5336 GB, free: 76.1 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001114/0.5661, allocations: 0.7073 MB / 0.5343 GB, free: 75.42 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000592/0.5667, allocations: 0.4985 MB / 0.5348 GB, free: 74.92 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001877/0.5669, allocations: 4 kB / 0.5348 GB, free: 74.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004856/0.5674, allocations: 60.75 kB / 0.5348 GB, free: 74.87 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001177/0.5675, allocations: 36.69 kB / 0.5349 GB, free: 74.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.142e-05/0.5675, allocations: 7.703 kB / 0.5349 GB, free: 74.84 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002752/0.5703, allocations: 2.052 MB / 0.5369 GB, free: 72.82 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5703, allocations: 0 / 0.5369 GB, free: 72.82 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007988/0.5711, allocations: 239.6 kB / 0.5371 GB, free: 72.59 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.0008206/0.5719, allocations: 416.3 kB / 0.5375 GB, free: 72.34 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009448/0.5729, allocations: 460.6 kB / 0.5379 GB, free: 71.88 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.5729, allocations: 0.625 kB / 0.5379 GB, free: 71.88 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004493/0.5733, allocations: 286.6 kB / 0.5382 GB, free: 71.58 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001136/0.5745, allocations: 213.9 kB / 0.5384 GB, free: 71.38 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005128/0.5796, allocations: 3.581 MB / 0.5419 GB, free: 67.76 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008445/0.5805, allocations: 1.351 MB / 0.5432 GB, free: 66.38 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003148/0.5808, allocations: 91.44 kB / 0.5433 GB, free: 66.29 MB / 378.7 MB Notification: Performance of SimCode: time 4.21e-07/0.5808, allocations: 0 / 0.5433 GB, free: 66.29 MB / 378.7 MB Notification: Performance of Templates: time 0.02843/0.6093, allocations: 25.24 MB / 0.568 GB, free: 41.08 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_Cell --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_Cell.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches