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.005997/0.005997, allocations: 105.4 kB / 21.98 MB, free: 5.223 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: 214.3 kB / 25.29 MB, free: 3.203 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.476/1.476, allocations: 230.6 MB / 259 MB, free: 8.035 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.00198/0.00198, allocations: 67.89 kB / 379.8 MB, free: 2.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2635/0.2655, allocations: 53.36 MB / 433.2 MB, free: 6.98 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.007915/0.2734, allocations: 6.123 MB / 439.3 MB, free: 0.832 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003947/0.2774, allocations: 2.337 MB / 441.6 MB, free: 14.49 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004236/0.2778, allocations: 23.81 kB / 441.6 MB, free: 14.47 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001387/0.2792, allocations: 0.6263 MB / 442.3 MB, free: 13.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008176/0.28, allocations: 453.6 kB / 442.7 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008927/0.2809, allocations: 417.6 kB / 443.1 MB, free: 12.99 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001454/0.2823, allocations: 1.31 MB / 444.4 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000535/0.2829, allocations: 310.3 kB / 444.7 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005781/0.2835, allocations: 0.5023 MB / 445.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007179/0.2842, allocations: 0.6033 MB / 445.8 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001454/0.2843, allocations: 116 kB / 446 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003163/0.2846, allocations: 180 kB / 446.1 MB, free: 9.961 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005256/0.2852, allocations: 0.6621 MB / 446.8 MB, free: 9.297 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007975/0.286, allocations: 0.8855 MB / 447.7 MB, free: 8.406 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002884/0.2888, allocations: 2.646 MB / 450.3 MB, free: 5.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.2888, allocations: 0 / 450.3 MB, free: 5.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.2889, allocations: 4 kB / 450.3 MB, free: 5.746 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.852e-05/0.2889, allocations: 0 / 450.3 MB, free: 5.746 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.003926/0.2928, allocations: 2.362 MB / 452.7 MB, free: 3.34 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/0.2928, allocations: 16.03 kB / 452.7 MB, free: 3.324 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003237/0.2932, allocations: 223.5 kB / 452.9 MB, free: 3.105 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002574/0.2957, allocations: 1.639 MB / 454.6 MB, free: 1.41 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001374/0.2959, allocations: 104.7 kB / 454.7 MB, free: 1.293 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001078/0.296, allocations: 63.95 kB / 454.7 MB, free: 1.23 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001509/0.2975, allocations: 0.8258 MB / 455.5 MB, free: 360 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.68e-05/0.2975, allocations: 4 kB / 455.6 MB, free: 356 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.651e-05/0.2976, allocations: 28 kB / 455.6 MB, free: 328 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.586e-05/0.2976, allocations: 12 kB / 455.6 MB, free: 316 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001093/0.2987, allocations: 0.5517 MB / 456.1 MB, free: 15.75 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005987/0.3047, allocations: 3.942 MB / 460.1 MB, free: 11.7 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001251/0.3059, allocations: 0.5018 MB / 460.6 MB, free: 11.19 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007323/0.3067, allocations: 334.1 kB / 460.9 MB, free: 10.86 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.829e-05/0.3067, allocations: 4.281 kB / 460.9 MB, free: 10.86 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.113e-05/0.3067, allocations: 38.84 kB / 461 MB, free: 10.81 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 1.773e-06/0.3067, allocations: 0 / 461 MB, free: 10.81 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002362/0.3091, allocations: 0.8769 MB / 461.8 MB, free: 9.926 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000269/0.3093, allocations: 269 kB / 462.1 MB, free: 9.602 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004374/0.3137, allocations: 3.16 MB / 465.3 MB, free: 6.406 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.159e-05/0.3138, allocations: 37.7 kB / 465.3 MB, free: 6.363 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008444/0.3146, allocations: 0.8615 MB / 466.2 MB, free: 5.496 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000121/0.3148, allocations: 122.9 kB / 466.3 MB, free: 5.375 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001806/0.3149, allocations: 98.14 kB / 466.4 MB, free: 5.273 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001569/0.3151, allocations: 326 kB / 466.7 MB, free: 4.949 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004682/0.3156, allocations: 208.9 kB / 466.9 MB, free: 4.742 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006271/0.3162, allocations: 397.3 kB / 467.3 MB, free: 4.281 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009847/0.3172, allocations: 0.5243 MB / 467.8 MB, free: 3.707 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.3172, allocations: 0 / 467.8 MB, free: 3.707 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.00167/0.3188, allocations: 0.7817 MB / 468.6 MB, free: 2.914 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.921e-05/0.3189, allocations: 11.94 kB / 468.6 MB, free: 2.902 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.086e-05/0.3189, allocations: 4 kB / 468.6 MB, free: 2.898 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003058/0.3192, allocations: 64.81 kB / 468.7 MB, free: 2.832 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004593/0.3196, allocations: 120 kB / 468.8 MB, free: 2.715 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001879/0.3215, allocations: 1.702 MB / 470.5 MB, free: 0.8984 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006404/0.3222, allocations: 75.69 kB / 470.6 MB, free: 0.8242 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.602e-05/0.3222, allocations: 19.94 kB / 470.6 MB, free: 0.8047 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.0009641/0.3232, allocations: 0.6499 MB / 471.2 MB, free: 148 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000284/0.3234, allocations: 194.7 kB / 471.4 MB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003137/0.3238, allocations: 222.6 kB / 471.6 MB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.3238, allocations: 4 kB / 471.6 MB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.3238, allocations: 3.938 kB / 471.6 MB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.3238, allocations: 3.984 kB / 471.6 MB, free: 15.72 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003544/0.3273, allocations: 2.131 MB / 473.8 MB, free: 13.53 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.3273, allocations: 4.062 kB / 473.8 MB, free: 13.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004023/0.3277, allocations: 83.94 kB / 473.9 MB, free: 13.44 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002019/0.3279, allocations: 60.7 kB / 473.9 MB, free: 13.38 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.114e-05/0.328, allocations: 11.98 kB / 473.9 MB, free: 13.37 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00165/0.3296, allocations: 1.636 MB / 475.6 MB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.3296, allocations: 0 / 475.6 MB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001949/0.3316, allocations: 0.9884 MB / 476.6 MB, free: 10.6 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009117/0.3325, allocations: 370.6 kB / 476.9 MB, free: 10.24 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001604/0.3326, allocations: 11.98 kB / 476.9 MB, free: 10.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005143/0.3331, allocations: 55.95 kB / 477 MB, free: 10.17 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001093/0.3332, allocations: 35.94 kB / 477 MB, free: 10.14 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.783e-05/0.3333, allocations: 16.23 kB / 477 MB, free: 10.12 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003247/0.3365, allocations: 2.259 MB / 479.3 MB, free: 7.844 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3365, allocations: 0 / 479.3 MB, free: 7.844 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008979/0.3374, allocations: 259.5 kB / 479.6 MB, free: 7.59 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.001771/0.3392, allocations: 482.5 kB / 480 MB, free: 7.293 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001343/0.3405, allocations: 0.586 MB / 480.6 MB, free: 6.695 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.3405, allocations: 0 / 480.6 MB, free: 6.695 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006683/0.3412, allocations: 359.1 kB / 481 MB, free: 6.332 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001241/0.3424, allocations: 293.9 kB / 481.2 MB, free: 6.047 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006845/0.3493, allocations: 3.744 MB / 485 MB, free: 2.25 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001876/0.3512, allocations: 1.485 MB / 486.5 MB, free: 0.7383 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000547/0.3517, allocations: 95.38 kB / 486.6 MB, free: 0.6445 MB / 382.1 MB Notification: Performance of SimCode: time 1.974e-06/0.3517, allocations: 0 / 486.6 MB, free: 0.6445 MB / 382.1 MB Notification: Performance of Templates: time 0.05019/0.4019, allocations: 29.75 MB / 0.5042 GB, free: 2.953 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","/var/lib/jenkins1/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: 9.482957971980795]