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_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.001336/0.001336, allocations: 114.5 kB / 21.17 MB, free: 0.6172 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.001469/0.001469, allocations: 206.2 kB / 24.47 MB, free: 4.023 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.61/1.61, allocations: 230.4 MB / 258.1 MB, free: 8.148 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_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.1.0-beta.om_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-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell") [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.00198/0.00198, allocations: 67.89 kB / 378.7 MB, free: 2.922 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2533/0.2553, allocations: 53.31 MB / 432 MB, free: 7.391 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.0079/0.2632, allocations: 5.606 MB / 437.6 MB, free: 1.758 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003422/0.2666, allocations: 1.902 MB / 439.5 MB, free: 15.85 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004703/0.2671, allocations: 15.94 kB / 439.6 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001133/0.2682, allocations: 0.5291 MB / 440.1 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007699/0.269, allocations: 382 kB / 440.5 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008254/0.2698, allocations: 373.1 kB / 440.8 MB, free: 14.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00104/0.2709, allocations: 0.8964 MB / 441.7 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004311/0.2713, allocations: 228.9 kB / 441.9 MB, free: 13.44 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004561/0.2718, allocations: 374.6 kB / 442.3 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005774/0.2723, allocations: 466.3 kB / 442.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001145/0.2724, allocations: 80 kB / 442.8 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002155/0.2727, allocations: 120 kB / 443 MB, free: 12.42 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005096/0.2732, allocations: 0.5843 MB / 443.5 MB, free: 11.83 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006988/0.2739, allocations: 0.7454 MB / 444.3 MB, free: 11.08 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002261/0.2761, allocations: 2.132 MB / 446.4 MB, free: 8.941 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.2761, allocations: 4 kB / 446.4 MB, free: 8.938 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.522e-06/0.2761, allocations: 0 / 446.4 MB, free: 8.938 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.614e-05/0.2762, allocations: 0 / 446.4 MB, free: 8.938 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.003594/0.2798, allocations: 2.145 MB / 448.6 MB, free: 6.734 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.983e-05/0.2798, allocations: 12.03 kB / 448.6 MB, free: 6.723 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002774/0.2801, allocations: 191.7 kB / 448.8 MB, free: 6.535 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002442/0.2825, allocations: 1.523 MB / 450.3 MB, free: 4.969 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001004/0.2826, allocations: 70.69 kB / 450.4 MB, free: 4.891 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.779e-05/0.2827, allocations: 47.94 kB / 450.4 MB, free: 4.844 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001085/0.2838, allocations: 0.5815 MB / 451 MB, free: 4.219 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.637e-05/0.2838, allocations: 0 / 451 MB, free: 4.219 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.338e-05/0.2838, allocations: 24 kB / 451 MB, free: 4.195 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.758e-05/0.2839, allocations: 12 kB / 451 MB, free: 4.184 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007547/0.2846, allocations: 347.7 kB / 451.4 MB, free: 3.844 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005014/0.2896, allocations: 3.247 MB / 454.6 MB, free: 488 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001165/0.2908, allocations: 365.3 kB / 455 MB, free: 116 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000514/0.2913, allocations: 172.8 kB / 455.1 MB, free: 15.94 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.278e-05/0.2914, allocations: 4 kB / 455.1 MB, free: 15.94 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.048e-05/0.2914, allocations: 34.56 kB / 455.2 MB, free: 15.89 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 2.114e-06/0.2914, allocations: 3.938 kB / 455.2 MB, free: 15.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.002054/0.2935, allocations: 0.7082 MB / 455.9 MB, free: 15.16 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001361/0.2936, allocations: 213.6 kB / 456.1 MB, free: 14.9 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00396/0.2975, allocations: 2.897 MB / 459 MB, free: 11.96 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.233e-05/0.2976, allocations: 33.7 kB / 459 MB, free: 11.92 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008204/0.2984, allocations: 0.7899 MB / 459.8 MB, free: 11.12 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.167e-05/0.2985, allocations: 75.38 kB / 459.9 MB, free: 11.05 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001333/0.2986, allocations: 69.98 kB / 460 MB, free: 10.97 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001522/0.2988, allocations: 314 kB / 460.3 MB, free: 10.66 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003612/0.2991, allocations: 128.6 kB / 460.4 MB, free: 10.54 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005151/0.2997, allocations: 288.8 kB / 460.7 MB, free: 10.18 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007539/0.3004, allocations: 361.7 kB / 461 MB, free: 9.781 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.3004, allocations: 4 kB / 461 MB, free: 9.777 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001269/0.3017, allocations: 0.5673 MB / 461.6 MB, free: 9.199 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.028e-05/0.3017, allocations: 8 kB / 461.6 MB, free: 9.191 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.084e-05/0.3017, allocations: 8.25 kB / 461.6 MB, free: 9.184 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002742/0.302, allocations: 56.83 kB / 461.7 MB, free: 9.125 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003049/0.3023, allocations: 75.89 kB / 461.7 MB, free: 9.051 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00183/0.3041, allocations: 1.721 MB / 463.5 MB, free: 7.191 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004572/0.3046, allocations: 59.7 kB / 463.5 MB, free: 7.133 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.519e-05/0.3046, allocations: 16 kB / 463.5 MB, free: 7.117 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.000763/0.3054, allocations: 0.5795 MB / 464.1 MB, free: 6.527 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002338/0.3056, allocations: 174.8 kB / 464.3 MB, free: 6.355 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001261/0.3069, allocations: 0.5142 MB / 464.8 MB, free: 5.832 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.3069, allocations: 0 / 464.8 MB, free: 5.832 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.272e-06/0.3069, allocations: 0 / 464.8 MB, free: 5.832 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.3069, allocations: 128 / 464.8 MB, free: 5.832 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003027/0.3099, allocations: 1.705 MB / 466.5 MB, free: 4.055 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.3099, allocations: 0 / 466.5 MB, free: 4.055 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002576/0.3102, allocations: 47.91 kB / 466.5 MB, free: 4.008 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000179/0.3103, allocations: 48.86 kB / 466.6 MB, free: 3.957 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.006e-05/0.3104, allocations: 4 kB / 466.6 MB, free: 3.953 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001783/0.3121, allocations: 1.665 MB / 468.3 MB, free: 2.152 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.3122, allocations: 3.938 kB / 468.3 MB, free: 2.148 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001675/0.3138, allocations: 0.7159 MB / 469 MB, free: 1.406 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008855/0.3147, allocations: 395.9 kB / 469.4 MB, free: 1 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001356/0.3148, allocations: 4 kB / 469.4 MB, free: 0.9961 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000457/0.3153, allocations: 43.95 kB / 469.4 MB, free: 0.9531 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000111/0.3154, allocations: 31.95 kB / 469.4 MB, free: 0.9219 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.812e-05/0.3154, allocations: 8 kB / 469.5 MB, free: 0.9141 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003139/0.3186, allocations: 2.079 MB / 471.5 MB, free: 14.81 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.3186, allocations: 0 / 471.5 MB, free: 14.81 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008708/0.3194, allocations: 199.7 kB / 471.7 MB, free: 14.62 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.001347/0.3208, allocations: 373.9 kB / 472.1 MB, free: 14.39 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001182/0.322, allocations: 418.7 kB / 472.5 MB, free: 13.96 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.302e-06/0.322, allocations: 4 kB / 472.5 MB, free: 13.96 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006095/0.3226, allocations: 267.2 kB / 472.8 MB, free: 13.69 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001124/0.3237, allocations: 228.4 kB / 473 MB, free: 13.46 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005461/0.3292, allocations: 3.065 MB / 476.1 MB, free: 10.36 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001203/0.3304, allocations: 1.359 MB / 477.4 MB, free: 8.977 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006315/0.331, allocations: 237.7 kB / 477.6 MB, free: 8.742 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002411/0.3312, allocations: 79.44 kB / 477.7 MB, free: 8.664 MB / 382.1 MB Notification: Performance of SimCode: time 7.22e-07/0.3312, allocations: 0 / 477.7 MB, free: 8.664 MB / 382.1 MB Notification: Performance of Templates: time 0.03123/0.3625, allocations: 15.93 MB / 493.7 MB, free: 8.812 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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: 5.122694941237569]