Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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.001748/0.001748, allocations: 109.1 kB / 21.18 MB, free: 0.7656 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.002393/0.002393, allocations: 213.7 kB / 24.5 MB, free: 4.148 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.475/1.475, allocations: 230.5 MB / 258.1 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00191/0.00191, allocations: 63.89 kB / 379 MB, free: 2.512 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2572/0.2591, allocations: 53.41 MB / 432.4 MB, free: 6.766 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.008136/0.2673, allocations: 5.603 MB / 438 MB, free: 1.145 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003796/0.2711, allocations: 1.909 MB / 439.9 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005603/0.2716, allocations: 19.88 kB / 440 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00126/0.2729, allocations: 0.5189 MB / 440.5 MB, free: 14.69 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009073/0.2738, allocations: 394 kB / 440.9 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008607/0.2746, allocations: 374.2 kB / 441.2 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001138/0.2758, allocations: 0.8965 MB / 442.1 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004397/0.2762, allocations: 229.4 kB / 442.3 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004879/0.2767, allocations: 382.7 kB / 442.7 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006075/0.2773, allocations: 462.4 kB / 443.2 MB, free: 11.99 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001058/0.2774, allocations: 80 kB / 443.2 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002273/0.2776, allocations: 127.9 kB / 443.4 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005056/0.2782, allocations: 0.5882 MB / 444 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000686/0.2788, allocations: 0.7377 MB / 444.7 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002289/0.2811, allocations: 2.132 MB / 446.8 MB, free: 8.312 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.2811, allocations: 0 / 446.8 MB, free: 8.312 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2811, allocations: 0 / 446.8 MB, free: 8.312 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.313e-05/0.2812, allocations: 0 / 446.8 MB, free: 8.312 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.003667/0.2848, allocations: 2.081 MB / 448.9 MB, free: 6.191 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/0.2849, allocations: 8.031 kB / 448.9 MB, free: 6.184 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002844/0.2852, allocations: 195.7 kB / 449.1 MB, free: 5.992 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002574/0.2877, allocations: 1.455 MB / 450.6 MB, free: 4.508 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001266/0.2879, allocations: 96.72 kB / 450.7 MB, free: 4.398 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.225e-05/0.2879, allocations: 48 kB / 450.7 MB, free: 4.352 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001265/0.2892, allocations: 0.5932 MB / 451.3 MB, free: 3.711 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.685e-05/0.2892, allocations: 0 / 451.3 MB, free: 3.711 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.774e-05/0.2893, allocations: 20 kB / 451.3 MB, free: 3.691 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.483e-05/0.2893, allocations: 15.94 kB / 451.3 MB, free: 3.676 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007541/0.2901, allocations: 343.8 kB / 451.7 MB, free: 3.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005006/0.2951, allocations: 3.199 MB / 454.9 MB, free: 24 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00114/0.2962, allocations: 364.8 kB / 455.2 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004655/0.2967, allocations: 172.3 kB / 455.4 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.08e-05/0.2967, allocations: 0 / 455.4 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.021e-05/0.2967, allocations: 42.55 kB / 455.4 MB, free: 15.44 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 3.487e-06/0.2967, allocations: 4 kB / 455.4 MB, free: 15.44 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.001922/0.2987, allocations: 0.6223 MB / 456.1 MB, free: 14.8 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001439/0.2988, allocations: 213.6 kB / 456.3 MB, free: 14.55 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004186/0.303, allocations: 2.908 MB / 459.2 MB, free: 11.59 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.875e-05/0.303, allocations: 25.7 kB / 459.2 MB, free: 11.56 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007887/0.3038, allocations: 0.79 MB / 460 MB, free: 10.77 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.453e-05/0.3039, allocations: 79.3 kB / 460.1 MB, free: 10.69 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001284/0.3041, allocations: 69.98 kB / 460.1 MB, free: 10.61 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001541/0.3042, allocations: 322 kB / 460.5 MB, free: 10.29 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003548/0.3046, allocations: 116.6 kB / 460.6 MB, free: 10.18 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004873/0.305, allocations: 296.7 kB / 460.9 MB, free: 9.82 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008061/0.3059, allocations: 357.4 kB / 461.2 MB, free: 9.422 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.3059, allocations: 0 / 461.2 MB, free: 9.422 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.00134/0.3072, allocations: 0.575 MB / 461.8 MB, free: 8.836 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.555e-05/0.3072, allocations: 8 kB / 461.8 MB, free: 8.828 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/0.3072, allocations: 4 kB / 461.8 MB, free: 8.824 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003036/0.3075, allocations: 56.83 kB / 461.8 MB, free: 8.766 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003114/0.3079, allocations: 80.02 kB / 461.9 MB, free: 8.688 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001893/0.3097, allocations: 1.609 MB / 463.5 MB, free: 6.965 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005748/0.3103, allocations: 59.72 kB / 463.6 MB, free: 6.906 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.897e-05/0.3103, allocations: 24.08 kB / 463.6 MB, free: 6.883 MB / 366.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.0008646/0.3112, allocations: 0.5718 MB / 464.2 MB, free: 6.301 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002535/0.3115, allocations: 178.8 kB / 464.4 MB, free: 6.125 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001232/0.3127, allocations: 0.5065 MB / 464.9 MB, free: 5.609 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.3127, allocations: 4 kB / 464.9 MB, free: 5.605 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.613e-06/0.3127, allocations: 4 kB / 464.9 MB, free: 5.602 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.238e-06/0.3127, allocations: 3.984 kB / 464.9 MB, free: 5.598 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003032/0.3157, allocations: 1.656 MB / 466.5 MB, free: 3.879 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.23e-06/0.3157, allocations: 7.969 kB / 466.5 MB, free: 3.871 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002315/0.316, allocations: 43.97 kB / 466.6 MB, free: 3.828 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000184/0.3162, allocations: 56.73 kB / 466.6 MB, free: 3.77 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.13e-05/0.3162, allocations: 4 kB / 466.6 MB, free: 3.766 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001623/0.3178, allocations: 1.562 MB / 468.2 MB, free: 2.09 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/0.3178, allocations: 4.031 kB / 468.2 MB, free: 2.086 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001666/0.3195, allocations: 0.7265 MB / 468.9 MB, free: 1.336 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007761/0.3203, allocations: 318.7 kB / 469.3 MB, free: 1.023 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00013/0.3204, allocations: 8 kB / 469.3 MB, free: 1.016 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004262/0.3208, allocations: 43.95 kB / 469.3 MB, free: 0.9727 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.883e-05/0.3209, allocations: 31.95 kB / 469.3 MB, free: 0.9414 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.061e-05/0.3209, allocations: 11.98 kB / 469.3 MB, free: 0.9297 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003193/0.3241, allocations: 2.075 MB / 471.4 MB, free: 14.83 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3241, allocations: 0 / 471.4 MB, free: 14.83 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000826/0.3249, allocations: 203.7 kB / 471.6 MB, free: 14.63 MB / 382.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.001361/0.3263, allocations: 345.9 kB / 472 MB, free: 14.4 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001135/0.3274, allocations: 434.6 kB / 472.4 MB, free: 13.96 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.3274, allocations: 0 / 472.4 MB, free: 13.96 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005653/0.328, allocations: 271.1 kB / 472.6 MB, free: 13.68 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001092/0.3291, allocations: 218.2 kB / 472.9 MB, free: 13.47 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005857/0.335, allocations: 3.16 MB / 476 MB, free: 10.26 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001259/0.3362, allocations: 1.358 MB / 477.4 MB, free: 8.871 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004361/0.3367, allocations: 79.44 kB / 477.5 MB, free: 8.793 MB / 382.1 MB Notification: Performance of SimCode: time 1.292e-06/0.3367, allocations: 4 kB / 477.5 MB, free: 8.789 MB / 382.1 MB Notification: Performance of Templates: time 0.04181/0.3785, allocations: 24.99 MB / 0.4907 GB, free: 15.82 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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: 9.001752295996994]