Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.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.000732/0.000732, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001054/0.001786, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.001011/0.001011, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001196/0.002207, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.01/1.01, allocations: 177.2 MB / 189.6 MB, free: 5.301 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08987/1.099, allocations: 53.65 MB / 243.3 MB, free: 15.57 MB / 250.7 MB " [Timeout remaining time 179] 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_StackRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|energy.y|stack.cell.[0-9,]+..cell.capacitor.[0-9,]+..v|stack.cell.[0-9,]+..cell.limIntegrator.y|stack.cell.[0-9,]+..limIntegrator.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_StackRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|energy.y|stack.cell.[0-9,]+..cell.capacitor.[0-9,]+..v|stack.cell.[0-9,]+..cell.limIntegrator.y|stack.cell.[0-9,]+..limIntegrator.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.403e-06/1.403e-06, allocations: 0 / 244.5 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.629e-05/1.769e-05, allocations: 2.312 kB / 244.5 MB, free: 14.32 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_StackRC): time 0.008764/0.008781, allocations: 10.75 MB / 255.3 MB, free: 3.52 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.005227/0.01401, allocations: 3.952 MB / 259.2 MB, free: 15.55 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009839/0.01499, allocations: 35.75 kB / 259.2 MB, free: 15.52 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002961/0.01795, allocations: 2.446 MB / 261.7 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001075/0.01903, allocations: 476.3 kB / 262.2 MB, free: 12.6 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001078/0.02011, allocations: 0.5186 MB / 262.7 MB, free: 12.08 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006892/0.027, allocations: 9.881 MB / 272.6 MB, free: 2.172 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1582/0.1852, allocations: 2.704 MB / 275.3 MB, free: 6.363 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01105/0.1962, allocations: 6.877 MB / 282.1 MB, free: 6.016 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007988/0.2042, allocations: 3.93 MB / 286.1 MB, free: 6.016 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004757/0.209, allocations: 0.9128 MB / 287 MB, free: 6.016 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005495/0.2145, allocations: 0.9698 MB / 288 MB, free: 6.016 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.006889/0.2214, allocations: 5.328 MB / 293.3 MB, free: 5.691 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01548/0.2368, allocations: 3.424 MB / 296.7 MB, free: 4.113 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02147/0.2583, allocations: 15.45 MB / 312.2 MB, free: 6.227 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.224e-05/0.2583, allocations: 0 / 312.2 MB, free: 6.227 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2583, allocations: 4 kB / 312.2 MB, free: 6.223 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0007486/0.2591, allocations: 0 / 312.2 MB, free: 6.223 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1013 * Number of variables: 1013 Notification: Performance of Generate backend data structure: time 0.03691/0.296, allocations: 19.35 MB / 331.5 MB, free: 3.715 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.793e-05/0.296, allocations: 12.75 kB / 331.5 MB, free: 3.703 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003422/0.2994, allocations: 1.305 MB / 332.8 MB, free: 2.398 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02416/0.3236, allocations: 12.12 MB / 344.9 MB, free: 6.594 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005334/0.3241, allocations: 0.8613 MB / 345.8 MB, free: 5.609 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000637/0.3248, allocations: 432 kB / 346.2 MB, free: 5.188 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005497/0.3303, allocations: 5.862 MB / 352.1 MB, free: 14.77 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.13e-05/0.3303, allocations: 4 kB / 352.1 MB, free: 14.76 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003131/0.3306, allocations: 176 kB / 352.3 MB, free: 14.59 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.145e-05/0.3307, allocations: 96 kB / 352.4 MB, free: 14.5 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001848/0.3325, allocations: 0.9266 MB / 353.3 MB, free: 13.59 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0294/0.3619, allocations: 15.34 MB / 368.6 MB, free: 14.61 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001805/0.3637, allocations: 1.501 MB / 370.1 MB, free: 13.16 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001333/0.3651, allocations: 1.159 MB / 371.3 MB, free: 12.04 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.799e-05/0.3651, allocations: 42 kB / 371.3 MB, free: 11.99 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.677e-05/0.3652, allocations: 69.06 kB / 371.4 MB, free: 11.92 MB / 346.7 MB Notification: Performance of pre-optimization done (n=201): time 4.429e-06/0.3652, allocations: 0 / 371.4 MB, free: 11.92 MB / 346.7 MB Notification: Performance of matching and sorting (n=201): time 0.006714/0.3719, allocations: 2.762 MB / 374.1 MB, free: 9.18 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.732e-05/0.372, allocations: 89.41 kB / 374.2 MB, free: 9.078 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02714/0.3991, allocations: 18.32 MB / 392.6 MB, free: 7.086 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006185/0.3997, allocations: 77.7 kB / 392.6 MB, free: 7.004 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005041/0.4048, allocations: 3.353 MB / 396 MB, free: 3.629 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001108/0.4059, allocations: 0.7358 MB / 396.7 MB, free: 2.887 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009616/0.4068, allocations: 473 kB / 397.2 MB, free: 2.418 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.146e-05/0.4069, allocations: 305.1 kB / 397.5 MB, free: 2.117 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007384/0.4077, allocations: 244.8 kB / 397.7 MB, free: 1.875 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001846/0.4095, allocations: 2.416 MB / 400.1 MB, free: 14.83 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001903/0.4114, allocations: 1.248 MB / 401.4 MB, free: 13.45 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.148e-05/0.4114, allocations: 4 kB / 401.4 MB, free: 13.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=312) (initialization): time 0.005436/0.4169, allocations: 1.976 MB / 403.4 MB, free: 11.55 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.198e-05/0.4169, allocations: 15.94 kB / 403.4 MB, free: 11.54 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.207e-05/0.4169, allocations: 12.88 kB / 403.4 MB, free: 11.53 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007433/0.4177, allocations: 256.5 kB / 403.6 MB, free: 11.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002551/0.4202, allocations: 0.714 MB / 404.4 MB, free: 10.59 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00343/0.4236, allocations: 3.241 MB / 407.6 MB, free: 7.285 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004033/0.4277, allocations: 310.7 kB / 407.9 MB, free: 6.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002462/0.4279, allocations: 72 kB / 408 MB, free: 6.91 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 64 * Number of states: 0 () * Number of discrete variables: 14 (stack.cell[1,1].cell.limIntegrator.local_reset,stack.cell[1,1].limIntegrator.local_reset,stack.cell[1,2].cell.limIntegrator.local_reset,stack.cell[1,2].limIntegrator.local_reset,stack.cell[2,1].cell.limIntegrator.local_reset,stack.cell[2,1].limIntegrator.local_reset,stack.cell[2,2].cell.limIntegrator.local_reset,stack.cell[2,2].limIntegrator.local_reset,stack.cell[3,1].cell.limIntegrator.local_reset,stack.cell[3,1].limIntegrator.local_reset,stack.cell[3,2].cell.limIntegrator.local_reset,stack.cell[3,2].limIntegrator.local_reset,energy.local_reset,cccvCharger.CV) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (272): * Single equations (assignments): 271 * 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 {(3,38)} Notification: Performance of prepare postOptimizeDAE: time 0.004721/0.4326, allocations: 299 kB / 408.3 MB, free: 6.633 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002715/0.4354, allocations: 0.8817 MB / 409.1 MB, free: 5.75 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004268/0.4396, allocations: 1.385 MB / 410.5 MB, free: 4.355 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.474e-05/0.4396, allocations: 20 kB / 410.6 MB, free: 4.336 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/0.4396, allocations: 0 / 410.6 MB, free: 4.336 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.547e-05/0.4397, allocations: 11.95 kB / 410.6 MB, free: 4.324 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1554/0.595, allocations: 6.543 MB / 417.1 MB, free: 100.9 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.085e-05/0.595, allocations: 3.781 kB / 417.1 MB, free: 100.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00242/0.5975, allocations: 0.559 MB / 417.7 MB, free: 100.9 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006627/0.6041, allocations: 1.911 MB / 419.6 MB, free: 100.9 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006824/0.6048, allocations: 180.9 kB / 419.8 MB, free: 100.9 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002055/0.605, allocations: 72 kB / 419.8 MB, free: 100.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003242/0.6082, allocations: 2.747 MB / 422.6 MB, free: 99.59 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.6082, allocations: 1.094 kB / 422.6 MB, free: 99.59 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00776/0.616, allocations: 2.477 MB / 425.1 MB, free: 99.26 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001587/0.6176, allocations: 77.92 kB / 425.1 MB, free: 99.26 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003511/0.6211, allocations: 229.2 kB / 425.4 MB, free: 99.26 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007345/0.6218, allocations: 218.4 kB / 425.6 MB, free: 99.26 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003046/0.6221, allocations: 45.39 kB / 425.6 MB, free: 99.26 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.02477/0.6469, allocations: 9.82 MB / 435.4 MB, free: 98.25 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.81e-07/0.6469, allocations: 0 / 435.4 MB, free: 98.25 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.007075/0.654, allocations: 1.883 MB / 437.3 MB, free: 98.25 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 25 (stack.cell[1,1].cell.limIntegrator.y,stack.cell[1,1].cell.capacitor[1].v,stack.cell[1,1].cell.capacitor[2].v,stack.cell[1,1].limIntegrator.y,stack.cell[1,2].cell.limIntegrator.y,stack.cell[1,2].cell.capacitor[1].v,stack.cell[1,2].cell.capacitor[2].v,stack.cell[1,2].limIntegrator.y,stack.cell[2,1].cell.limIntegrator.y,stack.cell[2,1].cell.capacitor[1].v,stack.cell[2,1].cell.capacitor[2].v,stack.cell[2,1].limIntegrator.y,stack.cell[2,2].cell.limIntegrator.y,stack.cell[2,2].cell.capacitor[1].v,stack.cell[2,2].cell.capacitor[2].v,stack.cell[2,2].limIntegrator.y,stack.cell[3,1].cell.limIntegrator.y,stack.cell[3,1].cell.capacitor[1].v,stack.cell[3,1].cell.capacitor[2].v,stack.cell[3,1].limIntegrator.y,stack.cell[3,2].cell.limIntegrator.y,stack.cell[3,2].cell.capacitor[1].v,stack.cell[3,2].cell.capacitor[2].v,stack.cell[3,2].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 (171): * Single equations (assignments): 170 * 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 {(3,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001957/0.6559, allocations: 0.7316 MB / 438 MB, free: 98.11 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002824/0.6587, allocations: 1.479 MB / 439.5 MB, free: 97.86 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 0.000496/0.6592, allocations: 195.2 kB / 439.7 MB, free: 97.85 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001268/0.6605, allocations: 0.9022 MB / 440.6 MB, free: 97.67 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01255/0.6731, allocations: 2.908 MB / 443.5 MB, free: 97.34 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06933/0.7424, allocations: 29.09 MB / 472.6 MB, free: 72.51 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006325/0.7487, allocations: 3.583 MB / 476.2 MB, free: 68.9 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.006637/0.7553, allocations: 1.612 MB / 477.8 MB, free: 67.28 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008373/0.7637, allocations: 2.131 MB / 479.9 MB, free: 65.14 MB / 378.7 MB Notification: Performance of SimCode: time 2.204e-06/0.7637, allocations: 0 / 479.9 MB, free: 65.14 MB / 378.7 MB Notification: Performance of Templates: time 0.4117/1.175, allocations: 150.4 MB / 0.6155 GB, free: 94.46 MB / 410.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_StackRC/CCCV_StackRC.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.052623949944973]