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/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009016/0.0009017, allocations: 93.84 kB / 16.3 MB, free: 5.996 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.00103/0.00103, allocations: 184 kB / 17.2 MB, free: 5.914 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.462/1.462, allocations: 223.2 MB / 241.1 MB, free: 5.477 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002882/0.0002882, allocations: 5.469 kB / 300.7 MB, free: 5.992 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1161, allocations: 50.43 MB / 351.1 MB, free: 11.79 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.005334/0.1215, allocations: 4.495 MB / 355.6 MB, free: 7.273 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002678/0.1242, allocations: 1.607 MB / 357.2 MB, free: 5.664 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004852/0.1247, allocations: 12 kB / 357.2 MB, free: 5.652 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008849/0.1256, allocations: 474.5 kB / 357.7 MB, free: 5.188 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006478/0.1262, allocations: 335.2 kB / 358 MB, free: 4.859 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007248/0.127, allocations: 266.5 kB / 358.3 MB, free: 4.602 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000961/0.1279, allocations: 0.6364 MB / 358.9 MB, free: 3.965 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004173/0.1284, allocations: 251.9 kB / 359.2 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003592/0.1287, allocations: 295 kB / 359.5 MB, free: 3.422 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003613/0.1291, allocations: 338.7 kB / 359.8 MB, free: 3.09 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.303e-05/0.1292, allocations: 32 kB / 359.8 MB, free: 3.059 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001659/0.1294, allocations: 67.91 kB / 359.9 MB, free: 2.992 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004069/0.1298, allocations: 0.5415 MB / 360.4 MB, free: 2.449 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000217/0.13, allocations: 284.8 kB / 360.7 MB, free: 2.164 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001333/0.1313, allocations: 1.703 MB / 362.4 MB, free: 468 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.786e-06/0.1313, allocations: 0 / 362.4 MB, free: 468 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.1314, allocations: 0 / 362.4 MB, free: 468 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.857e-05/0.1314, allocations: 0 / 362.4 MB, free: 468 kB / 286.1 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.002796/0.1342, allocations: 1.827 MB / 364.2 MB, free: 14.57 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.051e-05/0.1342, allocations: 8.031 kB / 364.3 MB, free: 14.56 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002314/0.1345, allocations: 185.7 kB / 364.4 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002137/0.1366, allocations: 1.401 MB / 365.8 MB, free: 12.93 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002307/0.1369, allocations: 102.7 kB / 365.9 MB, free: 12.83 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.576e-05/0.1369, allocations: 47.98 kB / 366 MB, free: 12.78 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001012/0.138, allocations: 0.5971 MB / 366.6 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.629e-05/0.138, allocations: 3.938 kB / 366.6 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.971e-05/0.138, allocations: 20 kB / 366.6 MB, free: 12.12 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.294e-05/0.1381, allocations: 12 kB / 366.6 MB, free: 12.11 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006815/0.1387, allocations: 351.8 kB / 367 MB, free: 11.76 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004592/0.1433, allocations: 3.285 MB / 370.2 MB, free: 8.355 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001139/0.1445, allocations: 423.1 kB / 370.7 MB, free: 7.934 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.576e-05/0.1446, allocations: 192 / 370.7 MB, free: 7.934 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.404e-05/0.1446, allocations: 42.75 kB / 370.7 MB, free: 7.883 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 2.715e-06/0.1446, allocations: 0 / 370.7 MB, free: 7.883 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.002084/0.1467, allocations: 0.8136 MB / 371.5 MB, free: 7.043 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001113/0.1468, allocations: 205.6 kB / 371.7 MB, free: 6.793 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003649/0.1505, allocations: 2.892 MB / 374.6 MB, free: 3.855 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.442e-05/0.1505, allocations: 41.62 kB / 374.6 MB, free: 3.809 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006924/0.1512, allocations: 0.7775 MB / 375.4 MB, free: 3.023 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.77e-05/0.1513, allocations: 75 kB / 375.5 MB, free: 2.949 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.424e-05/0.1513, allocations: 4 kB / 375.5 MB, free: 2.945 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000119/0.1515, allocations: 318 kB / 375.8 MB, free: 2.629 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003391/0.1518, allocations: 136.6 kB / 375.9 MB, free: 2.496 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004223/0.1522, allocations: 299.9 kB / 376.2 MB, free: 2.137 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003626/0.1526, allocations: 155.9 kB / 376.4 MB, free: 1.984 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.586e-06/0.1526, allocations: 0 / 376.4 MB, free: 1.984 MB / 302.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001471/0.1541, allocations: 0.6485 MB / 377 MB, free: 1.324 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.197e-05/0.1541, allocations: 4 kB / 377 MB, free: 1.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.036e-05/0.1541, allocations: 4 kB / 377 MB, free: 1.316 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003665/0.1545, allocations: 92.98 kB / 377.1 MB, free: 1.223 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002788/0.1548, allocations: 71.89 kB / 377.2 MB, free: 1.152 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002188/0.157, allocations: 1.83 MB / 379 MB, free: 15.19 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004534/0.1575, allocations: 63.56 kB / 379.1 MB, free: 15.12 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.63e-05/0.1575, allocations: 16 kB / 379.1 MB, free: 15.11 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 (33): * Single equations (assignments): 32 * 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 7} Notification: Performance of prepare postOptimizeDAE: time 0.0008089/0.1583, allocations: 0.574 MB / 379.7 MB, free: 14.53 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002073/0.1585, allocations: 169.9 kB / 379.9 MB, free: 14.36 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001285/0.1598, allocations: 0.5727 MB / 380.4 MB, free: 13.77 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.578e-06/0.1599, allocations: 4 kB / 380.4 MB, free: 13.77 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.1599, allocations: 0 / 380.4 MB, free: 13.77 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.1599, allocations: 7.938 kB / 380.4 MB, free: 13.76 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00133/0.1612, allocations: 1.07 MB / 381.5 MB, free: 12.63 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.1612, allocations: 0 / 381.5 MB, free: 12.63 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002223/0.1615, allocations: 39.97 kB / 381.5 MB, free: 12.59 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002611/0.1617, allocations: 76.81 kB / 381.6 MB, free: 12.51 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.222e-05/0.1618, allocations: 8 kB / 381.6 MB, free: 12.5 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002009/0.1638, allocations: 1.81 MB / 383.4 MB, free: 10.56 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.1638, allocations: 0 / 383.4 MB, free: 10.56 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001527/0.1653, allocations: 0.7855 MB / 384.2 MB, free: 9.754 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006586/0.166, allocations: 382.9 kB / 384.6 MB, free: 9.359 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001185/0.1661, allocations: 8 kB / 384.6 MB, free: 9.352 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004231/0.1665, allocations: 59.94 kB / 384.7 MB, free: 9.293 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.472e-05/0.1666, allocations: 31.95 kB / 384.7 MB, free: 9.262 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.539e-05/0.1667, allocations: 4 kB / 384.7 MB, free: 9.258 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002671/0.1693, allocations: 2.063 MB / 386.8 MB, free: 7.172 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1694, allocations: 4 kB / 386.8 MB, free: 7.168 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00078/0.1701, allocations: 207.5 kB / 387 MB, free: 6.965 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (14): * Single equations (assignments): 13 * 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 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.000868/0.171, allocations: 361.4 kB / 387.3 MB, free: 6.734 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001147/0.1722, allocations: 483.3 kB / 387.8 MB, free: 6.25 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.1722, allocations: 4.562 kB / 387.8 MB, free: 6.246 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005759/0.1728, allocations: 315.1 kB / 388.1 MB, free: 5.926 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008623/0.1736, allocations: 208.6 kB / 388.3 MB, free: 5.719 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005649/0.1793, allocations: 3.361 MB / 391.7 MB, free: 2.328 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001054/0.1804, allocations: 1.378 MB / 393.1 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005065/0.1809, allocations: 237.7 kB / 393.3 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001862/0.1811, allocations: 75.44 kB / 393.4 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of SimCode: time 6.51e-07/0.1811, allocations: 0 / 393.4 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of Templates: time 0.02491/0.206, allocations: 14.16 MB / 407.5 MB, free: 2.527 MB / 334.1 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/jenkins/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