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.001766/0.001765, allocations: 106.3 kB / 17.16 MB, free: 6.324 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.002287/0.002288, allocations: 198.9 kB / 18.08 MB, free: 5.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.449/2.449, allocations: 222.9 MB / 241.8 MB, free: 15.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001306/0.001306, allocations: 51.73 kB / 300.6 MB, free: 6.203 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1351/0.1365, allocations: 49.45 MB / 350.1 MB, free: 4.75 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.009299/0.1458, allocations: 5.498 MB / 355.5 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00429/0.1502, allocations: 1.676 MB / 357.2 MB, free: 13.54 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008386/0.1511, allocations: 15.94 kB / 357.2 MB, free: 13.52 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001559/0.1528, allocations: 0.4944 MB / 357.7 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001371/0.1542, allocations: 318.6 kB / 358 MB, free: 12.71 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001206/0.1554, allocations: 323 kB / 358.4 MB, free: 12.4 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0017/0.1571, allocations: 0.8455 MB / 359.2 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007205/0.1578, allocations: 295.7 kB / 359.5 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006169/0.1585, allocations: 310.8 kB / 359.8 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007737/0.1593, allocations: 418.4 kB / 360.2 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001702/0.1594, allocations: 44 kB / 360.3 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00033/0.1598, allocations: 79.97 kB / 360.3 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005323/0.1603, allocations: 0.5531 MB / 360.9 MB, free: 9.867 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008969/0.1612, allocations: 0.6869 MB / 361.6 MB, free: 9.176 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002261/0.1635, allocations: 1.758 MB / 363.3 MB, free: 7.414 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.715e-06/0.1635, allocations: 0 / 363.3 MB, free: 7.414 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1635, allocations: 0 / 363.3 MB, free: 7.414 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.357e-05/0.1636, allocations: 4 kB / 363.3 MB, free: 7.41 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.004767/0.1684, allocations: 2.075 MB / 365.4 MB, free: 5.273 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.347e-05/0.1685, allocations: 8.031 kB / 365.4 MB, free: 5.266 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000523/0.169, allocations: 186.6 kB / 365.6 MB, free: 5.082 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003333/0.1724, allocations: 1.478 MB / 367.1 MB, free: 3.559 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000363/0.1727, allocations: 94.67 kB / 367.2 MB, free: 3.461 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001557/0.1729, allocations: 48 kB / 367.2 MB, free: 3.414 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00154/0.1745, allocations: 0.5776 MB / 367.8 MB, free: 2.793 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.12e-05/0.1745, allocations: 7.938 kB / 367.8 MB, free: 2.785 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.515e-05/0.1746, allocations: 24 kB / 367.8 MB, free: 2.762 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.641e-05/0.1746, allocations: 12 kB / 367.8 MB, free: 2.75 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009235/0.1755, allocations: 339.8 kB / 368.2 MB, free: 2.414 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3099/0.4855, allocations: 3.252 MB / 371.4 MB, free: 24.18 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002077/0.4876, allocations: 382.5 kB / 371.8 MB, free: 24.16 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008472/0.4885, allocations: 185.8 kB / 372 MB, free: 24.15 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.503e-05/0.4886, allocations: 6.812 kB / 372 MB, free: 24.15 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.457e-05/0.4886, allocations: 39.7 kB / 372 MB, free: 24.11 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 4.107e-06/0.4886, allocations: 4.844 kB / 372 MB, free: 24.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.003568/0.4922, allocations: 0.6892 MB / 372.7 MB, free: 23.98 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.273e-05/0.4923, allocations: 214.4 kB / 372.9 MB, free: 23.73 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008055/0.5004, allocations: 2.893 MB / 375.8 MB, free: 22.97 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001175/0.5006, allocations: 31.83 kB / 375.8 MB, free: 22.94 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001043/0.5017, allocations: 0.7794 MB / 376.6 MB, free: 22.37 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001469/0.5018, allocations: 79.11 kB / 376.7 MB, free: 22.31 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002188/0.502, allocations: 69.02 kB / 376.8 MB, free: 22.27 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001052/0.5022, allocations: 321.5 kB / 377.1 MB, free: 21.96 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005963/0.5028, allocations: 123.9 kB / 377.2 MB, free: 21.92 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006439/0.5034, allocations: 291.5 kB / 377.5 MB, free: 21.69 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001067/0.5045, allocations: 364.7 kB / 377.8 MB, free: 21.48 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.786e-06/0.5045, allocations: 1.625 kB / 377.8 MB, free: 21.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002425/0.507, allocations: 0.5478 MB / 378.4 MB, free: 21.24 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.662e-05/0.507, allocations: 13.06 kB / 378.4 MB, free: 21.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.592e-05/0.5071, allocations: 4.25 kB / 378.4 MB, free: 21.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004166/0.5075, allocations: 57.61 kB / 378.5 MB, free: 21.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004551/0.508, allocations: 77.58 kB / 378.5 MB, free: 21.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001954/0.5099, allocations: 1.564 MB / 380.1 MB, free: 19.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001179/0.5111, allocations: 64.3 kB / 380.2 MB, free: 19.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.518e-05/0.5112, allocations: 15.34 kB / 380.2 MB, free: 19.7 MB / 302.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.001437/0.5126, allocations: 0.5744 MB / 380.8 MB, free: 19.43 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005554/0.5132, allocations: 160.9 kB / 380.9 MB, free: 19.35 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002048/0.5152, allocations: 0.5141 MB / 381.4 MB, free: 19.16 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.326e-06/0.5153, allocations: 2.25 kB / 381.4 MB, free: 19.16 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.5153, allocations: 4.781 kB / 381.4 MB, free: 19.16 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.703e-06/0.5153, allocations: 1.953 kB / 381.4 MB, free: 19.16 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005127/0.5204, allocations: 1.693 MB / 383.1 MB, free: 18.37 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.49e-06/0.5205, allocations: 0 / 383.1 MB, free: 18.37 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003636/0.5209, allocations: 42.7 kB / 383.2 MB, free: 18.37 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002637/0.5211, allocations: 58 kB / 383.2 MB, free: 18.34 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.104e-05/0.5212, allocations: 1.75 kB / 383.2 MB, free: 18.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001695/0.5229, allocations: 1.504 MB / 384.7 MB, free: 16.9 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.5229, allocations: 0.7031 kB / 384.7 MB, free: 16.9 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002565/0.5255, allocations: 0.7194 MB / 385.5 MB, free: 16.53 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001079/0.5266, allocations: 386 kB / 385.8 MB, free: 16.28 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002675/0.5269, allocations: 7.781 kB / 385.8 MB, free: 16.28 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007148/0.5276, allocations: 43.7 kB / 385.9 MB, free: 16.27 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001579/0.5278, allocations: 35.59 kB / 385.9 MB, free: 16.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.778e-05/0.5278, allocations: 4.5 kB / 385.9 MB, free: 16.27 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.00517/0.533, allocations: 2.069 MB / 388 MB, free: 15.57 MB / 302.1 MB Notification: Performance of sort global known variables: time 7.91e-07/0.533, allocations: 0 / 388 MB, free: 15.57 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001842/0.5349, allocations: 207.1 kB / 388.2 MB, free: 15.53 MB / 302.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00137/0.5363, allocations: 362.7 kB / 388.5 MB, free: 15.39 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001763/0.5381, allocations: 432.3 kB / 389 MB, free: 15.19 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 8.196e-06/0.5381, allocations: 1.156 kB / 389 MB, free: 15.19 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008717/0.539, allocations: 267.4 kB / 389.2 MB, free: 15.03 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002407/0.5414, allocations: 218.9 kB / 389.4 MB, free: 14.93 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01013/0.5516, allocations: 3.609 MB / 393.1 MB, free: 13.1 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001291/0.5529, allocations: 1.348 MB / 394.4 MB, free: 12.07 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005894/0.5535, allocations: 88.83 kB / 394.5 MB, free: 12.05 MB / 302.1 MB Notification: Performance of SimCode: time 1.353e-06/0.5535, allocations: 0 / 394.5 MB, free: 12.05 MB / 302.1 MB Notification: Performance of Templates: time 0.05459/0.6081, allocations: 24.64 MB / 419.1 MB, free: 3.859 MB / 318.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches