Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001928/0.001928, allocations: 99.66 kB / 21.18 MB, free: 0.5273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002319/0.002319, allocations: 215.1 kB / 24.48 MB, free: 3.84 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.48/1.48, allocations: 230.6 MB / 258.2 MB, free: 7.809 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+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001665/0.001665, allocations: 47.92 kB / 379 MB, free: 2.488 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2962/0.2978, allocations: 53.38 MB / 432.3 MB, free: 6.738 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.007243/0.3051, allocations: 4.946 MB / 437.3 MB, free: 1.773 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003625/0.3087, allocations: 1.796 MB / 439.1 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005876/0.3093, allocations: 19.88 kB / 439.1 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001239/0.3105, allocations: 0.5174 MB / 439.6 MB, free: 15.44 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000879/0.3114, allocations: 386 kB / 440 MB, free: 15.06 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008836/0.3123, allocations: 386.4 kB / 440.4 MB, free: 14.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001126/0.3134, allocations: 0.8926 MB / 441.3 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004432/0.3139, allocations: 217.3 kB / 441.5 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004746/0.3143, allocations: 370.8 kB / 441.8 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005267/0.3149, allocations: 430.3 kB / 442.2 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000108/0.315, allocations: 76 kB / 442.3 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002413/0.3152, allocations: 127.9 kB / 442.4 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004982/0.3157, allocations: 0.5844 MB / 443 MB, free: 12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005819/0.3163, allocations: 0.5512 MB / 443.6 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002244/0.3186, allocations: 2.144 MB / 445.7 MB, free: 9.293 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.614e-06/0.3186, allocations: 4 kB / 445.7 MB, free: 9.289 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3186, allocations: 3.938 kB / 445.7 MB, free: 9.285 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.053e-05/0.3186, allocations: 4 kB / 445.7 MB, free: 9.281 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.003579/0.3222, allocations: 2.073 MB / 447.8 MB, free: 7.168 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.754e-05/0.3222, allocations: 8.031 kB / 447.8 MB, free: 7.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002861/0.3225, allocations: 195.7 kB / 448 MB, free: 6.969 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002506/0.325, allocations: 1.463 MB / 449.5 MB, free: 5.477 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001282/0.3251, allocations: 92.41 kB / 449.6 MB, free: 5.371 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.954e-05/0.3252, allocations: 48 kB / 449.6 MB, free: 5.324 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001263/0.3265, allocations: 0.8403 MB / 450.5 MB, free: 4.375 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.714e-05/0.3265, allocations: 0 / 450.5 MB, free: 4.375 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.207e-05/0.3265, allocations: 20 kB / 450.5 MB, free: 4.355 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.216e-05/0.3266, allocations: 12 kB / 450.5 MB, free: 4.344 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007248/0.3273, allocations: 343.8 kB / 450.8 MB, free: 4.008 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00463/0.3319, allocations: 2.846 MB / 453.7 MB, free: 1.062 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001113/0.333, allocations: 361.4 kB / 454 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004603/0.3335, allocations: 168.7 kB / 454.2 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.658e-05/0.3335, allocations: 4 kB / 454.2 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.329e-05/0.3336, allocations: 38.56 kB / 454.2 MB, free: 496 kB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.864e-06/0.3336, allocations: 0 / 454.2 MB, free: 496 kB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001838/0.3354, allocations: 0.6186 MB / 454.8 MB, free: 15.85 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001701/0.3356, allocations: 205.6 kB / 455 MB, free: 15.6 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003852/0.3394, allocations: 2.88 MB / 457.9 MB, free: 12.67 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.936e-05/0.3395, allocations: 29.7 kB / 458 MB, free: 12.64 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008144/0.3403, allocations: 0.8012 MB / 458.8 MB, free: 11.84 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.675e-05/0.3404, allocations: 79.38 kB / 458.8 MB, free: 11.76 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001205/0.3405, allocations: 65.98 kB / 458.9 MB, free: 11.69 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001438/0.3406, allocations: 318 kB / 459.2 MB, free: 11.37 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003516/0.341, allocations: 124.6 kB / 459.3 MB, free: 11.25 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000559/0.3415, allocations: 446.9 kB / 459.8 MB, free: 10.71 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007368/0.3423, allocations: 355.9 kB / 460.1 MB, free: 10.31 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.945e-06/0.3423, allocations: 4 kB / 460.1 MB, free: 10.3 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001216/0.3435, allocations: 0.5632 MB / 460.7 MB, free: 9.734 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.199e-05/0.3435, allocations: 11.98 kB / 460.7 MB, free: 9.723 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.013e-05/0.3435, allocations: 4 kB / 460.7 MB, free: 9.719 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002639/0.3438, allocations: 52.83 kB / 460.7 MB, free: 9.664 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003081/0.3441, allocations: 84.02 kB / 460.8 MB, free: 9.582 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001764/0.3459, allocations: 1.582 MB / 462.4 MB, free: 7.898 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004639/0.3463, allocations: 67.8 kB / 462.5 MB, free: 7.832 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.522e-05/0.3464, allocations: 12 kB / 462.5 MB, free: 7.82 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.0008069/0.3472, allocations: 0.5718 MB / 463.1 MB, free: 7.238 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002304/0.3474, allocations: 174.8 kB / 463.2 MB, free: 7.066 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001237/0.3486, allocations: 0.5117 MB / 463.7 MB, free: 6.547 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.3486, allocations: 4 kB / 463.7 MB, free: 6.543 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.233e-06/0.3486, allocations: 0 / 463.7 MB, free: 6.543 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.3486, allocations: 0 / 463.7 MB, free: 6.543 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00282/0.3515, allocations: 1.425 MB / 465.2 MB, free: 5.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.3515, allocations: 0 / 465.2 MB, free: 5.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002459/0.3517, allocations: 47.98 kB / 465.2 MB, free: 5.023 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001759/0.3519, allocations: 60.64 kB / 465.3 MB, free: 4.961 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.042e-05/0.3519, allocations: 4 kB / 465.3 MB, free: 4.957 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001564/0.3535, allocations: 1.543 MB / 466.8 MB, free: 3.312 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/0.3535, allocations: 7.969 kB / 466.8 MB, free: 3.305 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001561/0.355, allocations: 0.7079 MB / 467.5 MB, free: 2.57 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008692/0.3559, allocations: 310.8 kB / 467.8 MB, free: 2.266 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001252/0.356, allocations: 4 kB / 467.8 MB, free: 2.262 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004166/0.3564, allocations: 47.95 kB / 467.9 MB, free: 2.215 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.887e-05/0.3565, allocations: 31.95 kB / 467.9 MB, free: 2.184 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.845e-05/0.3566, allocations: 7.984 kB / 467.9 MB, free: 2.176 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00296/0.3595, allocations: 2.039 MB / 470 MB, free: 116 kB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3595, allocations: 0 / 470 MB, free: 116 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008326/0.3604, allocations: 199.7 kB / 470.2 MB, free: 15.91 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.00141/0.3618, allocations: 391.3 kB / 470.6 MB, free: 15.68 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001077/0.3628, allocations: 428.2 kB / 471 MB, free: 15.25 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.009e-06/0.3628, allocations: 4 kB / 471 MB, free: 15.25 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005367/0.3634, allocations: 267.2 kB / 471.2 MB, free: 14.97 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009909/0.3644, allocations: 214 kB / 471.4 MB, free: 14.76 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005322/0.3697, allocations: 3.145 MB / 474.6 MB, free: 11.57 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009571/0.3707, allocations: 0.7666 MB / 475.4 MB, free: 10.77 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002779/0.3709, allocations: 79.44 kB / 475.4 MB, free: 10.69 MB / 382.1 MB Notification: Performance of SimCode: time 1.002e-06/0.3709, allocations: 0 / 475.4 MB, free: 10.69 MB / 382.1 MB Notification: Performance of Templates: time 0.03999/0.4109, allocations: 25.09 MB / 0.4888 GB, free: 1.609 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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.88584076333791]