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.000767/0.000767, allocations: 89.44 kB / 16.65 MB, free: 6.535 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.0009553/0.0009554, allocations: 177.8 kB / 17.56 MB, free: 6.18 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.483/1.483, allocations: 223.3 MB / 241.6 MB, free: 208 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003048/0.0003049, allocations: 11.94 kB / 301.4 MB, free: 6.141 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1064, allocations: 50.41 MB / 351.8 MB, free: 3.715 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.006312/0.1128, allocations: 5.069 MB / 356.9 MB, free: 14.61 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003224/0.116, allocations: 1.657 MB / 358.6 MB, free: 12.95 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006584/0.1167, allocations: 11.94 kB / 358.6 MB, free: 12.94 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001215/0.118, allocations: 0.4905 MB / 359.1 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008637/0.1189, allocations: 314.5 kB / 359.4 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008962/0.1198, allocations: 330.7 kB / 359.7 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00116/0.1209, allocations: 0.8378 MB / 360.5 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005242/0.1215, allocations: 303.6 kB / 360.8 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005265/0.122, allocations: 282.8 kB / 361.1 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000447/0.1225, allocations: 386.4 kB / 361.5 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.036e-05/0.1225, allocations: 32 kB / 361.5 MB, free: 9.988 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001712/0.1227, allocations: 71.98 kB / 361.6 MB, free: 9.918 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004243/0.1232, allocations: 0.5336 MB / 362.1 MB, free: 9.383 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005557/0.1237, allocations: 0.6963 MB / 362.8 MB, free: 8.676 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001702/0.1254, allocations: 1.985 MB / 364.8 MB, free: 6.684 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.1254, allocations: 0 / 364.8 MB, free: 6.684 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.365e-06/0.1255, allocations: 3.938 kB / 364.8 MB, free: 6.68 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.498e-05/0.1255, allocations: 4 kB / 364.8 MB, free: 6.676 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.002869/0.1284, allocations: 1.804 MB / 366.6 MB, free: 4.812 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.099e-05/0.1284, allocations: 15.97 kB / 366.6 MB, free: 4.797 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002495/0.1287, allocations: 182.6 kB / 366.8 MB, free: 4.617 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002054/0.1307, allocations: 1.486 MB / 368.3 MB, free: 3.086 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002281/0.131, allocations: 98.67 kB / 368.4 MB, free: 2.984 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.178e-05/0.1311, allocations: 44 kB / 368.4 MB, free: 2.941 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001072/0.1321, allocations: 0.5972 MB / 369 MB, free: 2.301 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.744e-05/0.1322, allocations: 4 kB / 369 MB, free: 2.297 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.971e-05/0.1322, allocations: 20 kB / 369 MB, free: 2.277 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.507e-05/0.1322, allocations: 12 kB / 369.1 MB, free: 2.266 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000719/0.133, allocations: 359.7 kB / 369.4 MB, free: 1.91 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2223/0.3553, allocations: 3.282 MB / 372.7 MB, free: 22.71 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00133/0.3566, allocations: 420.9 kB / 373.1 MB, free: 22.68 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000496/0.3572, allocations: 197.8 kB / 373.3 MB, free: 22.68 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.486e-05/0.3572, allocations: 10.2 kB / 373.3 MB, free: 22.68 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.34e-05/0.3572, allocations: 37.12 kB / 373.3 MB, free: 22.64 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 2.495e-06/0.3573, allocations: 1.156 kB / 373.3 MB, free: 22.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.002452/0.3597, allocations: 0.7518 MB / 374.1 MB, free: 22.5 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.118e-05/0.3598, allocations: 214 kB / 374.3 MB, free: 22.25 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00538/0.3652, allocations: 2.888 MB / 377.2 MB, free: 21.74 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.746e-05/0.3653, allocations: 35.89 kB / 377.2 MB, free: 21.7 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006796/0.366, allocations: 0.7841 MB / 378 MB, free: 21.1 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.424e-05/0.3661, allocations: 74.47 kB / 378.1 MB, free: 21.05 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.336e-05/0.3661, allocations: 36.12 kB / 378.1 MB, free: 21.02 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.113e-05/0.3662, allocations: 316.5 kB / 378.4 MB, free: 20.71 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003762/0.3666, allocations: 135.7 kB / 378.6 MB, free: 20.67 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004427/0.367, allocations: 305.3 kB / 378.9 MB, free: 20.43 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007653/0.3678, allocations: 377.3 kB / 379.2 MB, free: 20.21 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.082e-06/0.3678, allocations: 1.625 kB / 379.2 MB, free: 20.21 MB / 302.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001611/0.3695, allocations: 0.5873 MB / 379.8 MB, free: 19.95 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.347e-05/0.3695, allocations: 5.375 kB / 379.8 MB, free: 19.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.158e-05/0.3695, allocations: 5.344 kB / 379.8 MB, free: 19.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003391/0.3699, allocations: 56.31 kB / 379.9 MB, free: 19.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003177/0.3702, allocations: 83.48 kB / 380 MB, free: 19.92 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001478/0.3717, allocations: 1.582 MB / 381.5 MB, free: 18.44 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006613/0.3723, allocations: 65.72 kB / 381.6 MB, free: 18.42 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.583e-05/0.3724, allocations: 17.06 kB / 381.6 MB, free: 18.41 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.001102/0.3735, allocations: 0.5772 MB / 382.2 MB, free: 18.14 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002736/0.3738, allocations: 161.5 kB / 382.4 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001325/0.3751, allocations: 0.5458 MB / 382.9 MB, free: 17.86 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/0.3751, allocations: 3.844 kB / 382.9 MB, free: 17.86 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.524e-06/0.3751, allocations: 4 kB / 382.9 MB, free: 17.86 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.371e-06/0.3751, allocations: 1.453 kB / 382.9 MB, free: 17.86 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003086/0.3782, allocations: 1.719 MB / 384.6 MB, free: 17.08 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.868e-06/0.3783, allocations: 7.969 kB / 384.6 MB, free: 17.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002522/0.3785, allocations: 48.72 kB / 384.7 MB, free: 17.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002036/0.3787, allocations: 57.59 kB / 384.7 MB, free: 17.05 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.113e-05/0.3788, allocations: 12.62 kB / 384.8 MB, free: 17.04 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001239/0.38, allocations: 1.528 MB / 386.3 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.38, allocations: 0 / 386.3 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001675/0.3817, allocations: 0.7539 MB / 387 MB, free: 15.22 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005691/0.3823, allocations: 385.3 kB / 387.4 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001283/0.3824, allocations: 4.5 kB / 387.4 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004646/0.3829, allocations: 62.36 kB / 387.5 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001069/0.383, allocations: 29.3 kB / 387.5 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.944e-05/0.383, allocations: 10.73 kB / 387.5 MB, free: 14.96 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.003261/0.3863, allocations: 2.064 MB / 389.6 MB, free: 14.26 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.81e-07/0.3863, allocations: 4 kB / 389.6 MB, free: 14.26 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001104/0.3874, allocations: 201 kB / 389.8 MB, free: 14.23 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.001245/0.3887, allocations: 364.5 kB / 390.1 MB, free: 14.07 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001678/0.3904, allocations: 464 kB / 390.6 MB, free: 13.86 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.554e-06/0.3904, allocations: 1.312 kB / 390.6 MB, free: 13.86 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00083/0.3913, allocations: 283.1 kB / 390.9 MB, free: 13.7 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002174/0.3935, allocations: 218.3 kB / 391.1 MB, free: 13.6 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008708/0.4022, allocations: 3.548 MB / 394.6 MB, free: 11.71 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00132/0.4035, allocations: 1.351 MB / 396 MB, free: 10.52 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0009992/0.4046, allocations: 237.7 kB / 396.2 MB, free: 10.29 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002965/0.4049, allocations: 79.44 kB / 396.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of SimCode: time 7.32e-07/0.4049, allocations: 4 kB / 396.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of Templates: time 0.03895/0.4438, allocations: 14.4 MB / 410.7 MB, free: 11.9 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins/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