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.001088/0.001088, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001759/0.001759, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.333/1.333, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001157/0.001157, allocations: 50.39 kB / 301.3 MB, free: 5.879 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1039, allocations: 49.44 MB / 350.7 MB, free: 4.43 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.008381/0.1124, allocations: 6.016 MB / 356.7 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003623/0.116, allocations: 2.139 MB / 358.9 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006058/0.1167, allocations: 15.94 kB / 358.9 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001522/0.1182, allocations: 0.6301 MB / 359.5 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000936/0.1192, allocations: 397.8 kB / 359.9 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009651/0.1202, allocations: 410.6 kB / 360.3 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001637/0.1218, allocations: 1.306 MB / 361.6 MB, free: 9.484 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007165/0.1226, allocations: 485.7 kB / 362.1 MB, free: 8.988 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006451/0.1232, allocations: 490.4 kB / 362.6 MB, free: 8.508 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007803/0.124, allocations: 0.5877 MB / 363.2 MB, free: 7.918 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002182/0.1242, allocations: 116 kB / 363.3 MB, free: 7.805 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003842/0.1246, allocations: 172 kB / 363.4 MB, free: 7.637 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005016/0.1252, allocations: 0.6584 MB / 364.1 MB, free: 6.977 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009124/0.1261, allocations: 0.8932 MB / 365 MB, free: 6.078 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002175/0.1283, allocations: 2.582 MB / 367.6 MB, free: 3.488 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.1283, allocations: 0 / 367.6 MB, free: 3.488 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1283, allocations: 0 / 367.6 MB, free: 3.488 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.622e-05/0.1284, allocations: 0 / 367.6 MB, free: 3.488 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.004636/0.133, allocations: 2.36 MB / 369.9 MB, free: 1.066 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.419e-05/0.133, allocations: 8.031 kB / 369.9 MB, free: 1.059 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004178/0.1335, allocations: 214.3 kB / 370.1 MB, free: 0.8477 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1408/0.2743, allocations: 1.649 MB / 371.8 MB, free: 23.98 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002652/0.2746, allocations: 129.5 kB / 371.9 MB, free: 23.92 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001001/0.2747, allocations: 66.09 kB / 372 MB, free: 23.92 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001457/0.2762, allocations: 0.832 MB / 372.8 MB, free: 23.69 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.748e-05/0.2762, allocations: 0.7188 kB / 372.8 MB, free: 23.69 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.811e-05/0.2763, allocations: 28.16 kB / 372.8 MB, free: 23.67 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.126e-05/0.2763, allocations: 22.3 kB / 372.9 MB, free: 23.66 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001053/0.2774, allocations: 0.5484 MB / 373.4 MB, free: 23.46 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005783/0.2832, allocations: 4.001 MB / 377.4 MB, free: 21.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001304/0.2845, allocations: 0.5309 MB / 378 MB, free: 21.14 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007223/0.2852, allocations: 358 kB / 378.3 MB, free: 21.02 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.8e-05/0.2853, allocations: 6.781 kB / 378.3 MB, free: 21.02 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.04e-05/0.2853, allocations: 39.39 kB / 378.3 MB, free: 20.98 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 3.106e-06/0.2853, allocations: 4 kB / 378.3 MB, free: 20.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.00241/0.2877, allocations: 0.9416 MB / 379.3 MB, free: 20.55 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.61e-05/0.2878, allocations: 267 kB / 379.6 MB, free: 20.24 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004155/0.292, allocations: 3.151 MB / 382.7 MB, free: 19.22 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.736e-05/0.292, allocations: 33.11 kB / 382.7 MB, free: 19.18 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006447/0.2927, allocations: 0.8575 MB / 383.6 MB, free: 18.52 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.791e-05/0.2928, allocations: 124.6 kB / 383.7 MB, free: 18.43 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001546/0.293, allocations: 91.34 kB / 383.8 MB, free: 18.38 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.916e-05/0.293, allocations: 327.9 kB / 384.1 MB, free: 18.06 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004849/0.2935, allocations: 219.6 kB / 384.3 MB, free: 17.98 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005301/0.2941, allocations: 386.4 kB / 384.7 MB, free: 17.7 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008824/0.2949, allocations: 0.5222 MB / 385.2 MB, free: 17.39 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/0.295, allocations: 1.094 kB / 385.2 MB, free: 17.39 MB / 302.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001605/0.2966, allocations: 0.7742 MB / 386 MB, free: 17.05 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.067e-05/0.2966, allocations: 6.984 kB / 386 MB, free: 17.05 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/0.2966, allocations: 4.062 kB / 386 MB, free: 17.05 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002894/0.2969, allocations: 67.67 kB / 386.1 MB, free: 17.03 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000467/0.2974, allocations: 116.4 kB / 386.2 MB, free: 17.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001332/0.2987, allocations: 1.794 MB / 388 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006906/0.2994, allocations: 85.31 kB / 388.1 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.702e-05/0.2995, allocations: 18.59 kB / 388.1 MB, free: 15.3 MB / 302.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 (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,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0007935/0.3003, allocations: 0.6538 MB / 388.8 MB, free: 14.99 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002777/0.3006, allocations: 184.7 kB / 388.9 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002708/0.3009, allocations: 216 kB / 389.1 MB, free: 14.81 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.3009, allocations: 3.625 kB / 389.1 MB, free: 14.81 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.3009, allocations: 0 / 389.1 MB, free: 14.81 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.3009, allocations: 3.609 kB / 389.2 MB, free: 14.81 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003085/0.304, allocations: 2.163 MB / 391.3 MB, free: 13.37 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.299e-06/0.304, allocations: 0.5 kB / 391.3 MB, free: 13.37 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003962/0.3044, allocations: 89.34 kB / 391.4 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001798/0.3046, allocations: 64.81 kB / 391.5 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.934e-05/0.3046, allocations: 7.812 kB / 391.5 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001125/0.3058, allocations: 1.746 MB / 393.2 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.514e-06/0.3058, allocations: 3.938 kB / 393.2 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00177/0.3076, allocations: 0.9708 MB / 394.2 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006364/0.3082, allocations: 443.5 kB / 394.6 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001817/0.3084, allocations: 8.562 kB / 394.6 MB, free: 10.69 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005412/0.3089, allocations: 57.53 kB / 394.7 MB, free: 10.67 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001062/0.3091, allocations: 41.77 kB / 394.7 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.437e-05/0.3091, allocations: 10.88 kB / 394.7 MB, free: 10.64 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.002384/0.3115, allocations: 2.249 MB / 397 MB, free: 9.574 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3115, allocations: 0 / 397 MB, free: 9.574 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008965/0.3124, allocations: 254.7 kB / 397.2 MB, free: 9.477 MB / 302.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 (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 Backend phase and start with SimCode phase: time 0.000991/0.3134, allocations: 482.4 kB / 397.7 MB, free: 9.211 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001189/0.3146, allocations: 0.6359 MB / 398.3 MB, free: 8.566 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.3146, allocations: 0 / 398.3 MB, free: 8.566 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005414/0.3152, allocations: 363.1 kB / 398.7 MB, free: 8.199 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001128/0.3163, allocations: 285.1 kB / 399 MB, free: 7.926 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005053/0.3214, allocations: 3.786 MB / 402.8 MB, free: 4.109 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000752/0.3221, allocations: 1.481 MB / 404.2 MB, free: 2.598 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002914/0.3224, allocations: 91.44 kB / 404.3 MB, free: 2.508 MB / 302.1 MB Notification: Performance of SimCode: time 9.31e-07/0.3224, allocations: 4 kB / 404.3 MB, free: 2.504 MB / 302.1 MB Notification: Performance of Templates: time 0.03967/0.3621, allocations: 29.39 MB / 433.7 MB, free: 5.156 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","/var/lib/jenkins1/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