Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001848/0.001848, allocations: 110.5 kB / 21.23 MB, free: 0.6641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00156/0.00156, allocations: 213.2 kB / 24.54 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.456/1.456, allocations: 230.5 MB / 258.2 MB, free: 8.047 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.capacitor.1..v|cell.cell.capacitor.2..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.capacitor.1..v|cell.cell.capacitor.2..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001995/0.001995, allocations: 60.77 kB / 379 MB, free: 2.652 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2504/0.2524, allocations: 53.37 MB / 432.4 MB, free: 7.117 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.007929/0.2603, allocations: 6.123 MB / 438.5 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003705/0.264, allocations: 2.33 MB / 440.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004312/0.2644, allocations: 27.81 kB / 440.9 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001399/0.2658, allocations: 0.6224 MB / 441.5 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009116/0.2667, allocations: 461.6 kB / 441.9 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008909/0.2676, allocations: 410.7 kB / 442.4 MB, free: 13.13 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001727/0.2694, allocations: 1.309 MB / 443.7 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005622/0.2699, allocations: 314.4 kB / 444 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007058/0.2706, allocations: 0.5023 MB / 444.5 MB, free: 11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008685/0.2715, allocations: 0.6033 MB / 445.1 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001801/0.2717, allocations: 116 kB / 445.2 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003193/0.272, allocations: 180 kB / 445.4 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006907/0.2727, allocations: 0.6583 MB / 446 MB, free: 9.441 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009204/0.2736, allocations: 0.8894 MB / 446.9 MB, free: 8.547 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003346/0.277, allocations: 2.642 MB / 449.6 MB, free: 5.895 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.277, allocations: 0 / 449.6 MB, free: 5.895 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.305e-06/0.277, allocations: 0 / 449.6 MB, free: 5.895 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.223e-05/0.277, allocations: 0 / 449.6 MB, free: 5.895 MB / 350.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.004652/0.2817, allocations: 2.366 MB / 451.9 MB, free: 3.484 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.953e-05/0.2817, allocations: 8.031 kB / 451.9 MB, free: 3.477 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003742/0.2821, allocations: 231.5 kB / 452.2 MB, free: 3.25 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002865/0.2849, allocations: 1.631 MB / 453.8 MB, free: 1.562 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001508/0.2851, allocations: 116.7 kB / 453.9 MB, free: 1.434 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001031/0.2852, allocations: 63.95 kB / 454 MB, free: 1.371 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001557/0.2868, allocations: 0.8219 MB / 454.8 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.743e-05/0.2868, allocations: 0 / 454.8 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.75e-05/0.2868, allocations: 28 kB / 454.8 MB, free: 480 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.665e-05/0.2869, allocations: 20 kB / 454.8 MB, free: 460 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001125/0.288, allocations: 0.5477 MB / 455.4 MB, free: 15.9 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006647/0.2946, allocations: 3.946 MB / 459.3 MB, free: 11.84 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00134/0.296, allocations: 0.5021 MB / 459.8 MB, free: 11.33 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007863/0.2968, allocations: 342.1 kB / 460.2 MB, free: 11 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.158e-05/0.2968, allocations: 4.281 kB / 460.2 MB, free: 10.99 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.537e-05/0.2968, allocations: 38.84 kB / 460.2 MB, free: 10.95 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 1.884e-06/0.2969, allocations: 0 / 460.2 MB, free: 10.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002307/0.2992, allocations: 0.873 MB / 461.1 MB, free: 10.06 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002474/0.2994, allocations: 269 kB / 461.3 MB, free: 9.738 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004685/0.3041, allocations: 3.16 MB / 464.5 MB, free: 6.543 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.527e-05/0.3042, allocations: 33.7 kB / 464.5 MB, free: 6.504 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009256/0.3051, allocations: 0.8693 MB / 465.4 MB, free: 5.629 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001263/0.3052, allocations: 126.9 kB / 465.5 MB, free: 5.504 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001753/0.3054, allocations: 90.14 kB / 465.6 MB, free: 5.41 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001623/0.3055, allocations: 326 kB / 465.9 MB, free: 5.086 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005026/0.306, allocations: 212.9 kB / 466.1 MB, free: 4.875 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006528/0.3067, allocations: 389.3 kB / 466.5 MB, free: 4.422 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001059/0.3078, allocations: 0.5282 MB / 467 MB, free: 3.844 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.452e-06/0.3078, allocations: 4 kB / 467 MB, free: 3.84 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001696/0.3095, allocations: 0.7817 MB / 467.8 MB, free: 3.047 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.893e-05/0.3095, allocations: 7.938 kB / 467.8 MB, free: 3.039 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.227e-06/0.3095, allocations: 4 kB / 467.8 MB, free: 3.035 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003021/0.3098, allocations: 64.81 kB / 467.9 MB, free: 2.969 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004916/0.3103, allocations: 120 kB / 468 MB, free: 2.852 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001942/0.3122, allocations: 1.691 MB / 469.7 MB, free: 1.047 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006074/0.3128, allocations: 79.53 kB / 469.8 MB, free: 0.9688 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.692e-05/0.3129, allocations: 24.09 kB / 469.8 MB, free: 0.9453 MB / 366.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.0009868/0.3139, allocations: 0.6499 MB / 470.5 MB, free: 292 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002691/0.3141, allocations: 194.7 kB / 470.7 MB, free: 96 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003308/0.3145, allocations: 218.6 kB / 470.9 MB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.668e-06/0.3145, allocations: 4 kB / 470.9 MB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.955e-06/0.3145, allocations: 3.938 kB / 470.9 MB, free: 15.87 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.009e-05/0.3145, allocations: 11.91 kB / 470.9 MB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00381/0.3183, allocations: 2.131 MB / 473 MB, free: 13.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.3183, allocations: 0 / 473 MB, free: 13.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004155/0.3187, allocations: 80 kB / 473.1 MB, free: 13.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002147/0.3189, allocations: 68.69 kB / 473.2 MB, free: 13.52 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.916e-05/0.3189, allocations: 8 kB / 473.2 MB, free: 13.51 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001795/0.3207, allocations: 1.644 MB / 474.8 MB, free: 11.75 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.3207, allocations: 0 / 474.8 MB, free: 11.75 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002121/0.3229, allocations: 0.9844 MB / 475.8 MB, free: 10.74 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009898/0.3239, allocations: 370.6 kB / 476.2 MB, free: 10.38 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001883/0.324, allocations: 15.98 kB / 476.2 MB, free: 10.36 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005443/0.3246, allocations: 51.95 kB / 476.2 MB, free: 10.31 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001138/0.3247, allocations: 43.92 kB / 476.3 MB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.638e-05/0.3247, allocations: 12 kB / 476.3 MB, free: 10.25 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003397/0.3281, allocations: 2.255 MB / 478.5 MB, free: 7.98 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3281, allocations: 0 / 478.5 MB, free: 7.98 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009346/0.3291, allocations: 263.6 kB / 478.8 MB, free: 7.723 MB / 382.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.001736/0.3308, allocations: 477.8 kB / 479.3 MB, free: 7.43 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001428/0.3322, allocations: 0.586 MB / 479.8 MB, free: 6.832 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.121e-06/0.3322, allocations: 4 kB / 479.9 MB, free: 6.828 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006909/0.3329, allocations: 351.1 kB / 480.2 MB, free: 6.473 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001294/0.3342, allocations: 293.7 kB / 480.5 MB, free: 6.188 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006119/0.3403, allocations: 3.648 MB / 484.1 MB, free: 2.492 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001385/0.3417, allocations: 1.492 MB / 485.6 MB, free: 0.9727 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007159/0.3424, allocations: 303.2 kB / 485.9 MB, free: 0.6719 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000252/0.3427, allocations: 91.44 kB / 486 MB, free: 0.582 MB / 382.1 MB Notification: Performance of SimCode: time 9.92e-07/0.3427, allocations: 0 / 486 MB, free: 0.582 MB / 382.1 MB Notification: Performance of Templates: time 0.03954/0.3822, allocations: 17.77 MB / 0.492 GB, free: 14.96 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.340159676037729]