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.0009316/0.0009314, allocations: 86.67 kB / 16.31 MB, free: 6.449 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.001093/0.001093, allocations: 178.5 kB / 17.21 MB, free: 6.32 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.587/1.587, allocations: 223.3 MB / 241.2 MB, free: 5.309 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002579/0.0002579, allocations: 5.562 kB / 300.8 MB, free: 5.566 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1083, allocations: 50.43 MB / 351.2 MB, free: 11.54 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.006252/0.1146, allocations: 5.259 MB / 356.5 MB, free: 6.254 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00353/0.1182, allocations: 1.985 MB / 358.5 MB, free: 4.266 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004289/0.1186, allocations: 15.94 kB / 358.5 MB, free: 4.25 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001169/0.1198, allocations: 0.5722 MB / 359.1 MB, free: 3.676 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.0006338/0.1205, allocations: 346.3 kB / 359.4 MB, free: 3.336 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007264/0.1212, allocations: 274.6 kB / 359.7 MB, free: 3.07 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001226/0.1224, allocations: 1.105 MB / 360.8 MB, free: 1.965 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005883/0.123, allocations: 363.2 kB / 361.1 MB, free: 1.594 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005023/0.1236, allocations: 382.4 kB / 361.5 MB, free: 1.219 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005626/0.1241, allocations: 474.1 kB / 362 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.719e-05/0.1242, allocations: 48 kB / 362 MB, free: 0.707 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002563/0.1245, allocations: 95.97 kB / 362.1 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004668/0.125, allocations: 0.5843 MB / 362.7 MB, free: 28 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003243/0.1253, allocations: 344.7 kB / 363 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001955/0.1273, allocations: 2.12 MB / 365.2 MB, free: 13.56 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.1273, allocations: 4 kB / 365.2 MB, free: 13.55 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.1273, allocations: 0 / 365.2 MB, free: 13.55 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.559e-05/0.1273, allocations: 0 / 365.2 MB, free: 13.55 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.003278/0.1306, allocations: 2.065 MB / 367.2 MB, free: 11.43 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.198e-05/0.1306, allocations: 8.031 kB / 367.2 MB, free: 11.42 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003063/0.131, allocations: 213.4 kB / 367.4 MB, free: 11.21 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002401/0.1334, allocations: 1.567 MB / 369 MB, free: 9.57 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000255/0.1336, allocations: 144.6 kB / 369.1 MB, free: 9.418 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.713e-05/0.1337, allocations: 60 kB / 369.2 MB, free: 9.359 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001493/0.1352, allocations: 0.8336 MB / 370 MB, free: 8.473 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.587e-05/0.1353, allocations: 0 / 370 MB, free: 8.473 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.131e-05/0.1353, allocations: 31.98 kB / 370.1 MB, free: 8.441 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.847e-05/0.1354, allocations: 16 kB / 370.1 MB, free: 8.426 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001035/0.1364, allocations: 0.5555 MB / 370.6 MB, free: 7.867 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005685/0.1421, allocations: 4.051 MB / 374.7 MB, free: 3.691 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001287/0.1434, allocations: 0.5597 MB / 375.3 MB, free: 3.121 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007031/0.1441, allocations: 377.1 kB / 375.6 MB, free: 2.75 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.315e-05/0.1442, allocations: 4.281 kB / 375.6 MB, free: 2.746 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.51e-05/0.1442, allocations: 50.77 kB / 375.7 MB, free: 2.688 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 3.777e-06/0.1442, allocations: 4 kB / 375.7 MB, free: 2.684 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.002214/0.1464, allocations: 0.995 MB / 376.7 MB, free: 1.66 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001409/0.1466, allocations: 265 kB / 376.9 MB, free: 1.34 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004038/0.1506, allocations: 3.144 MB / 380.1 MB, free: 14.16 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.392e-05/0.1507, allocations: 37.7 kB / 380.1 MB, free: 14.11 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000818/0.1515, allocations: 0.8567 MB / 381 MB, free: 13.25 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001022/0.1516, allocations: 122.2 kB / 381.1 MB, free: 13.13 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.357e-05/0.1517, allocations: 12 kB / 381.1 MB, free: 13.12 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.1518, allocations: 326 kB / 381.4 MB, free: 12.8 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004414/0.1523, allocations: 217 kB / 381.6 MB, free: 12.59 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005884/0.1529, allocations: 406 kB / 382 MB, free: 12.12 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004897/0.1534, allocations: 267.6 kB / 382.3 MB, free: 11.86 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.1534, allocations: 0 / 382.3 MB, free: 11.86 MB / 318.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001587/0.155, allocations: 0.8392 MB / 383.1 MB, free: 11 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.536e-05/0.155, allocations: 8 kB / 383.1 MB, free: 11 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.2e-05/0.155, allocations: 4 kB / 383.1 MB, free: 10.99 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003532/0.1554, allocations: 80.69 kB / 383.2 MB, free: 10.91 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004468/0.1559, allocations: 120 kB / 383.3 MB, free: 10.79 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001815/0.1577, allocations: 1.642 MB / 385 MB, free: 9.02 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000616/0.1583, allocations: 83.34 kB / 385.1 MB, free: 8.938 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.73e-05/0.1584, allocations: 24.09 kB / 385.1 MB, free: 8.914 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 (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.001062/0.1594, allocations: 0.6537 MB / 385.7 MB, free: 8.25 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002306/0.1597, allocations: 177.8 kB / 385.9 MB, free: 8.074 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002901/0.16, allocations: 214.5 kB / 386.1 MB, free: 7.859 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.103e-06/0.16, allocations: 7.953 kB / 386.1 MB, free: 7.852 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/0.16, allocations: 3.984 kB / 386.1 MB, free: 7.848 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.813e-06/0.16, allocations: 3.984 kB / 386.1 MB, free: 7.844 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003241/0.1633, allocations: 2.186 MB / 388.3 MB, free: 5.586 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/0.1633, allocations: 8.062 kB / 388.3 MB, free: 5.578 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003791/0.1637, allocations: 91.88 kB / 388.4 MB, free: 5.488 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001943/0.1639, allocations: 64.81 kB / 388.5 MB, free: 5.422 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.165e-05/0.1639, allocations: 8 kB / 388.5 MB, free: 5.414 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001449/0.1654, allocations: 1.592 MB / 390.1 MB, free: 3.691 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.1654, allocations: 4.062 kB / 390.1 MB, free: 3.688 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001731/0.1671, allocations: 1.009 MB / 391.1 MB, free: 2.648 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006424/0.1678, allocations: 442.6 kB / 391.5 MB, free: 2.195 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001471/0.1679, allocations: 8 kB / 391.5 MB, free: 2.188 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000492/0.1684, allocations: 71.94 kB / 391.6 MB, free: 2.117 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001293/0.1686, allocations: 47.92 kB / 391.7 MB, free: 2.07 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.565e-05/0.1686, allocations: 12.25 kB / 391.7 MB, free: 2.059 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.003023/0.1716, allocations: 2.243 MB / 393.9 MB, free: 15.8 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1716, allocations: 0 / 393.9 MB, free: 15.8 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009761/0.1726, allocations: 251.5 kB / 394.2 MB, free: 15.55 MB / 334.1 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 () * Number of clocked 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.00119/0.1738, allocations: 476 kB / 394.6 MB, free: 15.26 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001352/0.1752, allocations: 0.6277 MB / 395.2 MB, free: 14.62 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.1752, allocations: 0 / 395.2 MB, free: 14.62 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006497/0.1759, allocations: 375.1 kB / 395.6 MB, free: 14.24 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001269/0.1771, allocations: 281.6 kB / 395.9 MB, free: 13.96 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006966/0.1841, allocations: 4.026 MB / 399.9 MB, free: 9.895 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001181/0.1853, allocations: 1.497 MB / 401.4 MB, free: 8.371 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0009081/0.1863, allocations: 299.2 kB / 401.7 MB, free: 8.074 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002739/0.1865, allocations: 91.42 kB / 401.8 MB, free: 7.984 MB / 334.1 MB Notification: Performance of SimCode: time 1.934e-06/0.1866, allocations: 0 / 401.8 MB, free: 7.984 MB / 334.1 MB Notification: Performance of Templates: time 0.0386/0.2252, allocations: 17.5 MB / 419.3 MB, free: 6.598 MB / 350.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches