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.001862/0.001862, allocations: 103.6 kB / 21.19 MB, free: 0.5234 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.002135/0.002135, allocations: 215.5 kB / 24.48 MB, free: 3.836 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.465/1.465, allocations: 230.5 MB / 258.1 MB, free: 7.797 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.001947/0.001947, allocations: 55.91 kB / 379 MB, free: 2.359 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2416/0.2436, allocations: 53.41 MB / 432.4 MB, free: 6.566 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.007257/0.2508, allocations: 4.958 MB / 437.3 MB, free: 1.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003376/0.2542, allocations: 1.799 MB / 439.1 MB, free: 15.79 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004055/0.2546, allocations: 19.88 kB / 439.2 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001147/0.2558, allocations: 0.5096 MB / 439.7 MB, free: 15.26 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008203/0.2566, allocations: 386 kB / 440 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000827/0.2574, allocations: 374.5 kB / 440.4 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001115/0.2585, allocations: 0.9003 MB / 441.3 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004302/0.259, allocations: 221.3 kB / 441.5 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004427/0.2594, allocations: 370.8 kB / 441.9 MB, free: 13.03 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005218/0.2599, allocations: 422.3 kB / 442.3 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001243/0.26, allocations: 80 kB / 442.4 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002264/0.2603, allocations: 124 kB / 442.5 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005225/0.2608, allocations: 0.5921 MB / 443.1 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005491/0.2613, allocations: 0.5473 MB / 443.6 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002257/0.2636, allocations: 2.148 MB / 445.8 MB, free: 9.113 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.782e-06/0.2636, allocations: 0 / 445.8 MB, free: 9.113 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.2636, allocations: 0 / 445.8 MB, free: 9.113 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.07e-05/0.2637, allocations: 0 / 445.8 MB, free: 9.113 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.003518/0.2672, allocations: 2.077 MB / 447.9 MB, free: 6.996 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.315e-05/0.2672, allocations: 15.98 kB / 447.9 MB, free: 6.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002862/0.2675, allocations: 199.6 kB / 448.1 MB, free: 6.785 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002655/0.2702, allocations: 1.455 MB / 449.5 MB, free: 5.301 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001267/0.2703, allocations: 96.72 kB / 449.6 MB, free: 5.191 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.221e-05/0.2704, allocations: 48 kB / 449.7 MB, free: 5.145 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001268/0.2716, allocations: 0.8364 MB / 450.5 MB, free: 4.203 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.041e-05/0.2717, allocations: 7.984 kB / 450.5 MB, free: 4.195 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.33e-05/0.2717, allocations: 20 kB / 450.5 MB, free: 4.176 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.086e-05/0.2717, allocations: 12 kB / 450.5 MB, free: 4.164 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007579/0.2725, allocations: 347.8 kB / 450.9 MB, free: 3.82 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00501/0.2775, allocations: 2.835 MB / 453.7 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001158/0.2787, allocations: 366.2 kB / 454.1 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004864/0.2791, allocations: 184.6 kB / 454.3 MB, free: 348 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.311e-05/0.2792, allocations: 4 kB / 454.3 MB, free: 344 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.558e-05/0.2792, allocations: 38.56 kB / 454.3 MB, free: 296 kB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 2.104e-06/0.2792, allocations: 0 / 454.3 MB, free: 296 kB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.002002/0.2812, allocations: 0.6179 MB / 454.9 MB, free: 15.66 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000127/0.2813, allocations: 209.6 kB / 455.1 MB, free: 15.41 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004433/0.2858, allocations: 2.872 MB / 458 MB, free: 12.49 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.874e-05/0.2859, allocations: 37.69 kB / 458 MB, free: 12.45 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008161/0.2867, allocations: 0.7935 MB / 458.8 MB, free: 11.65 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.067e-05/0.2868, allocations: 79.36 kB / 458.9 MB, free: 11.57 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001264/0.2869, allocations: 69.98 kB / 459 MB, free: 11.5 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.287, allocations: 318 kB / 459.3 MB, free: 11.18 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003699/0.2874, allocations: 120.6 kB / 459.4 MB, free: 11.06 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005633/0.288, allocations: 450.9 kB / 459.8 MB, free: 10.52 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007455/0.2887, allocations: 357.4 kB / 460.2 MB, free: 10.12 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/0.2887, allocations: 0 / 460.2 MB, free: 10.12 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001525/0.2902, allocations: 0.5634 MB / 460.8 MB, free: 9.543 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.363e-05/0.2903, allocations: 7.938 kB / 460.8 MB, free: 9.535 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.077e-05/0.2903, allocations: 4 kB / 460.8 MB, free: 9.531 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003066/0.2906, allocations: 56.83 kB / 460.8 MB, free: 9.473 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003135/0.2909, allocations: 84.02 kB / 460.9 MB, free: 9.391 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001857/0.2927, allocations: 1.578 MB / 462.5 MB, free: 7.711 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006738/0.2934, allocations: 63.8 kB / 462.5 MB, free: 7.648 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.793e-05/0.2934, allocations: 12.19 kB / 462.6 MB, free: 7.637 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.0008465/0.2943, allocations: 0.5757 MB / 463.1 MB, free: 7.051 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002682/0.2946, allocations: 170.9 kB / 463.3 MB, free: 6.883 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001277/0.2958, allocations: 0.5137 MB / 463.8 MB, free: 6.359 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.945e-06/0.2958, allocations: 0 / 463.8 MB, free: 6.359 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.453e-06/0.2958, allocations: 0 / 463.8 MB, free: 6.359 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.2958, allocations: 0 / 463.8 MB, free: 6.359 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002876/0.2987, allocations: 1.429 MB / 465.2 MB, free: 4.883 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.2987, allocations: 32 / 465.2 MB, free: 4.883 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002468/0.299, allocations: 47.97 kB / 465.3 MB, free: 4.836 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001999/0.2992, allocations: 56.69 kB / 465.3 MB, free: 4.777 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.206e-05/0.2992, allocations: 4 kB / 465.3 MB, free: 4.773 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001624/0.3008, allocations: 1.547 MB / 466.9 MB, free: 3.125 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.3008, allocations: 0 / 466.9 MB, free: 3.125 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001785/0.3026, allocations: 0.7112 MB / 467.6 MB, free: 2.391 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000942/0.3036, allocations: 306.8 kB / 467.9 MB, free: 2.09 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001447/0.3037, allocations: 11.94 kB / 467.9 MB, free: 2.078 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004295/0.3041, allocations: 47.95 kB / 468 MB, free: 2.031 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001009/0.3042, allocations: 27.94 kB / 468 MB, free: 2.004 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.122e-05/0.3042, allocations: 12 kB / 468 MB, free: 1.992 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003164/0.3074, allocations: 2.043 MB / 470 MB, free: 15.93 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.3074, allocations: 0 / 470 MB, free: 15.93 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001011/0.3084, allocations: 199.7 kB / 470.2 MB, free: 15.73 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.00148/0.3099, allocations: 382.8 kB / 470.6 MB, free: 15.47 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001201/0.3111, allocations: 426.5 kB / 471 MB, free: 15.04 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.389e-06/0.3111, allocations: 0 / 471 MB, free: 15.04 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005584/0.3117, allocations: 275.2 kB / 471.3 MB, free: 14.76 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001249/0.3129, allocations: 199.2 kB / 471.5 MB, free: 14.56 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005851/0.3188, allocations: 3.141 MB / 474.6 MB, free: 11.38 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000957/0.3197, allocations: 0.7627 MB / 475.4 MB, free: 10.57 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003659/0.3201, allocations: 83.44 kB / 475.5 MB, free: 10.49 MB / 382.1 MB Notification: Performance of SimCode: time 9.01e-07/0.3201, allocations: 0 / 475.5 MB, free: 10.49 MB / 382.1 MB Notification: Performance of Templates: time 0.0376/0.3577, allocations: 25.1 MB / 0.4888 GB, free: 1.402 MB / 398.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: 8.820019378792495]