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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009792/0.0009792, allocations: 94.34 kB / 16.3 MB, free: 6.457 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001095/0.001095, allocations: 182.1 kB / 17.2 MB, free: 6.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.414/1.414, allocations: 223.2 MB / 241.1 MB, free: 5.359 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000292/0.000292, allocations: 6.656 kB / 300.7 MB, free: 6.051 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1242/0.1245, allocations: 50.42 MB / 351.1 MB, free: 11.69 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.006587/0.1312, allocations: 4.916 MB / 356.1 MB, free: 6.75 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003649/0.1349, allocations: 1.985 MB / 358 MB, free: 4.762 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005312/0.1354, allocations: 15.94 kB / 358.1 MB, free: 4.746 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001547/0.137, allocations: 0.8259 MB / 358.9 MB, free: 3.918 MB / 286.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Electrical/Batteries/BatteryStacks/CellRCStack.mo:14:26-14:33:writable] Warning: 'each' used when modifying non-array element v. Notification: Performance of NFTyping.typeBindings: time 0.0005608/0.1376, allocations: 251.2 kB / 359.1 MB, free: 3.672 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007497/0.1383, allocations: 275.2 kB / 359.4 MB, free: 3.406 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001342/0.1397, allocations: 0.9956 MB / 360.4 MB, free: 2.41 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005652/0.1403, allocations: 379.2 kB / 360.8 MB, free: 2.023 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004407/0.1407, allocations: 382.7 kB / 361.1 MB, free: 1.648 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004611/0.1412, allocations: 418.3 kB / 361.5 MB, free: 1.238 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.196e-05/0.1413, allocations: 36 kB / 361.6 MB, free: 1.203 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002411/0.1415, allocations: 79.92 kB / 361.7 MB, free: 1.125 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003438/0.1419, allocations: 454.5 kB / 362.1 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002692/0.1421, allocations: 336.7 kB / 362.4 MB, free: 352 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001588/0.1437, allocations: 1.812 MB / 364.2 MB, free: 14.53 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.1438, allocations: 0 / 364.2 MB, free: 14.53 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1438, allocations: 0 / 364.2 MB, free: 14.53 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.716e-05/0.1438, allocations: 0 / 364.2 MB, free: 14.53 MB / 302.1 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.003199/0.147, allocations: 1.933 MB / 366.2 MB, free: 12.53 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.43e-05/0.1471, allocations: 8.031 kB / 366.2 MB, free: 12.52 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002844/0.1474, allocations: 213.4 kB / 366.4 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002475/0.1498, allocations: 1.64 MB / 368 MB, free: 10.6 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002706/0.1501, allocations: 132.7 kB / 368.2 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.633e-05/0.1502, allocations: 63.91 kB / 368.2 MB, free: 10.4 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001414/0.1517, allocations: 0.8336 MB / 369.1 MB, free: 9.512 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.638e-05/0.1517, allocations: 0 / 369.1 MB, free: 9.512 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.641e-05/0.1518, allocations: 28 kB / 369.1 MB, free: 9.484 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.788e-05/0.1518, allocations: 19.94 kB / 369.1 MB, free: 9.465 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001062/0.1529, allocations: 0.5594 MB / 369.7 MB, free: 8.902 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00516/0.158, allocations: 3.365 MB / 373 MB, free: 5.414 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00141/0.1595, allocations: 0.5748 MB / 373.6 MB, free: 4.832 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.596e-05/0.1595, allocations: 4.281 kB / 373.6 MB, free: 4.828 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.395e-05/0.1596, allocations: 38.84 kB / 373.6 MB, free: 4.781 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 4.097e-06/0.1596, allocations: 0 / 373.6 MB, free: 4.781 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.002833/0.1624, allocations: 1.062 MB / 374.7 MB, free: 3.691 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001286/0.1626, allocations: 261 kB / 375 MB, free: 3.375 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002894/0.1655, allocations: 2.117 MB / 377.1 MB, free: 1.223 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.783e-05/0.1656, allocations: 33.7 kB / 377.1 MB, free: 1.184 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008279/0.1664, allocations: 0.8919 MB / 378 MB, free: 292 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001351/0.1666, allocations: 122.2 kB / 378.1 MB, free: 168 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.349e-05/0.1666, allocations: 12 kB / 378.1 MB, free: 156 kB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001432/0.1667, allocations: 329.9 kB / 378.5 MB, free: 15.82 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004601/0.1672, allocations: 225 kB / 378.7 MB, free: 15.61 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005881/0.1678, allocations: 417.8 kB / 379.1 MB, free: 15.12 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005065/0.1683, allocations: 267.6 kB / 379.3 MB, free: 14.86 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.1683, allocations: 0 / 379.3 MB, free: 14.86 MB / 318.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001862/0.1702, allocations: 0.8705 MB / 380.2 MB, free: 13.98 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.134e-05/0.1703, allocations: 8 kB / 380.2 MB, free: 13.97 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.434e-05/0.1703, allocations: 7.953 kB / 380.2 MB, free: 13.96 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004063/0.1707, allocations: 89 kB / 380.3 MB, free: 13.88 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004574/0.1712, allocations: 115.8 kB / 380.4 MB, free: 13.76 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002351/0.1735, allocations: 1.923 MB / 382.4 MB, free: 11.7 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005709/0.1741, allocations: 87.59 kB / 382.4 MB, free: 11.61 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.24e-05/0.1741, allocations: 16 kB / 382.5 MB, free: 11.6 MB / 318.1 MB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 47 * 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 8} Notification: Performance of prepare postOptimizeDAE: time 0.001043/0.1752, allocations: 0.6576 MB / 383.1 MB, free: 10.93 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002101/0.1754, allocations: 185.7 kB / 383.3 MB, free: 10.75 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002709/0.1757, allocations: 218.5 kB / 383.5 MB, free: 10.53 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.568e-06/0.1757, allocations: 8 kB / 383.5 MB, free: 10.52 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.1757, allocations: 192 / 383.5 MB, free: 10.52 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.1757, allocations: 0 / 383.5 MB, free: 10.52 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001385/0.1771, allocations: 1.108 MB / 384.6 MB, free: 9.359 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.101e-06/0.1771, allocations: 0 / 384.6 MB, free: 9.359 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004125/0.1775, allocations: 83.88 kB / 384.7 MB, free: 9.277 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002976/0.1779, allocations: 92.75 kB / 384.8 MB, free: 9.184 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.878e-05/0.1779, allocations: 11.98 kB / 384.8 MB, free: 9.172 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00218/0.1801, allocations: 1.903 MB / 386.7 MB, free: 7.133 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.614e-06/0.1801, allocations: 0 / 386.7 MB, free: 7.133 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002027/0.1822, allocations: 1.07 MB / 387.8 MB, free: 6.039 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004253/0.1826, allocations: 302.7 kB / 388.1 MB, free: 5.723 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001149/0.1827, allocations: 12 kB / 388.1 MB, free: 5.711 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000479/0.1832, allocations: 67.94 kB / 388.2 MB, free: 5.645 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000108/0.1833, allocations: 39.89 kB / 388.2 MB, free: 5.605 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.55e-05/0.1834, allocations: 12 kB / 388.2 MB, free: 5.594 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002111/0.1855, allocations: 1.501 MB / 389.7 MB, free: 4.074 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.773e-06/0.1855, allocations: 0 / 389.7 MB, free: 4.074 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008349/0.1863, allocations: 227.4 kB / 389.9 MB, free: 3.852 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 24 * 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 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.001133/0.1875, allocations: 477.1 kB / 390.4 MB, free: 3.566 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001461/0.1889, allocations: 0.6526 MB / 391 MB, free: 2.902 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/0.189, allocations: 0 / 391 MB, free: 2.902 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006906/0.1897, allocations: 394.9 kB / 391.4 MB, free: 2.504 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001038/0.1907, allocations: 249.9 kB / 391.7 MB, free: 2.258 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006453/0.1972, allocations: 3.891 MB / 395.6 MB, free: 14.33 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001614/0.1988, allocations: 1.527 MB / 397.1 MB, free: 12.78 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001078/0.1999, allocations: 240.4 kB / 397.3 MB, free: 12.54 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001877/0.2001, allocations: 83.44 kB / 397.4 MB, free: 12.46 MB / 334.1 MB Notification: Performance of SimCode: time 1.533e-06/0.2001, allocations: 4 kB / 397.4 MB, free: 12.45 MB / 334.1 MB Notification: Performance of Templates: time 0.02339/0.2235, allocations: 11.4 MB / 408.8 MB, free: 1.172 MB / 334.1 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