Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.001897/0.001897, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002397/0.002397, allocations: 213 kB / 23.73 MB, free: 4.164 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.47/1.47, allocations: 230.5 MB / 257.4 MB, free: 7.809 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_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_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002974/0.002974, allocations: 71.89 kB / 378.2 MB, free: 2.418 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2783/0.2813, allocations: 53.41 MB / 431.6 MB, free: 6.555 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.01008/0.2913, allocations: 5.4 MB / 437 MB, free: 1.133 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00383/0.2952, allocations: 2.189 MB / 439.2 MB, free: 14.94 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003565/0.2955, allocations: 23.81 kB / 439.2 MB, free: 14.92 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001365/0.2969, allocations: 0.5991 MB / 439.8 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008164/0.2977, allocations: 465.6 kB / 440.3 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008224/0.2985, allocations: 406.6 kB / 440.7 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001432/0.3, allocations: 1.313 MB / 442 MB, free: 12.15 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005264/0.3005, allocations: 294.3 kB / 442.3 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005717/0.3011, allocations: 0.4984 MB / 442.8 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007065/0.3018, allocations: 0.5681 MB / 443.4 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001678/0.3019, allocations: 116 kB / 443.5 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003035/0.3022, allocations: 172 kB / 443.6 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005823/0.3028, allocations: 0.6622 MB / 444.3 MB, free: 9.828 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006944/0.3035, allocations: 0.668 MB / 445 MB, free: 9.156 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002729/0.3062, allocations: 2.666 MB / 447.6 MB, free: 6.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.3062, allocations: 0 / 447.6 MB, free: 6.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.3062, allocations: 4 kB / 447.6 MB, free: 6.477 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.713e-05/0.3063, allocations: 0 / 447.6 MB, free: 6.477 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.004244/0.3105, allocations: 2.358 MB / 450 MB, free: 4.074 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/0.3106, allocations: 12.03 kB / 450 MB, free: 4.062 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003221/0.3109, allocations: 231.5 kB / 450.2 MB, free: 3.836 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00278/0.3137, allocations: 1.635 MB / 451.9 MB, free: 2.145 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001795/0.3138, allocations: 186.1 kB / 452.1 MB, free: 1.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001031/0.3139, allocations: 63.95 kB / 452.1 MB, free: 1.867 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00165/0.3156, allocations: 1.177 MB / 453.3 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.843e-05/0.3156, allocations: 0 / 453.3 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.631e-05/0.3157, allocations: 28 kB / 453.3 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.582e-05/0.3157, allocations: 12 kB / 453.3 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0011/0.3168, allocations: 0.5556 MB / 453.9 MB, free: 15.95 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005569/0.3224, allocations: 3.494 MB / 457.4 MB, free: 12.36 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00136/0.3237, allocations: 0.5189 MB / 457.9 MB, free: 11.84 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008794/0.3246, allocations: 340.7 kB / 458.2 MB, free: 11.51 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.859e-05/0.3246, allocations: 4.281 kB / 458.2 MB, free: 11.5 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.128e-05/0.3247, allocations: 42.84 kB / 458.3 MB, free: 11.45 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 2.244e-06/0.3247, allocations: 0 / 458.3 MB, free: 11.45 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002375/0.327, allocations: 0.8697 MB / 459.2 MB, free: 10.57 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001638/0.3272, allocations: 268.9 kB / 459.4 MB, free: 10.25 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0043/0.3315, allocations: 3.112 MB / 462.5 MB, free: 7.098 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.408e-05/0.3316, allocations: 33.7 kB / 462.6 MB, free: 7.059 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009157/0.3325, allocations: 0.8804 MB / 463.4 MB, free: 6.172 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001192/0.3326, allocations: 115 kB / 463.6 MB, free: 6.059 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001629/0.3328, allocations: 102.1 kB / 463.7 MB, free: 5.953 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001522/0.3329, allocations: 322 kB / 464 MB, free: 5.633 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004885/0.3334, allocations: 212.9 kB / 464.2 MB, free: 5.422 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007446/0.3342, allocations: 0.5811 MB / 464.8 MB, free: 4.719 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001014/0.3352, allocations: 0.5204 MB / 465.3 MB, free: 4.148 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.3352, allocations: 4 kB / 465.3 MB, free: 4.145 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001594/0.3368, allocations: 0.7779 MB / 466.1 MB, free: 3.355 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.164e-05/0.3368, allocations: 11.94 kB / 466.1 MB, free: 3.344 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.523e-05/0.3368, allocations: 7.938 kB / 466.1 MB, free: 3.336 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003065/0.3371, allocations: 69 kB / 466.1 MB, free: 3.266 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004705/0.3376, allocations: 107.9 kB / 466.2 MB, free: 3.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001846/0.3394, allocations: 1.664 MB / 467.9 MB, free: 1.395 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005614/0.34, allocations: 67.69 kB / 468 MB, free: 1.328 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.478e-05/0.34, allocations: 20 kB / 468 MB, free: 1.309 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.0009005/0.3409, allocations: 0.6537 MB / 468.7 MB, free: 0.6445 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002668/0.3412, allocations: 186.9 kB / 468.8 MB, free: 472 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002871/0.3415, allocations: 218.1 kB / 469 MB, free: 252 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.3415, allocations: 3.938 kB / 469.1 MB, free: 248 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.3415, allocations: 7.938 kB / 469.1 MB, free: 240 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.221e-06/0.3415, allocations: 3.984 kB / 469.1 MB, free: 236 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003415/0.3449, allocations: 1.832 MB / 470.9 MB, free: 14.35 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.3449, allocations: 4 kB / 470.9 MB, free: 14.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003917/0.3453, allocations: 79.94 kB / 471 MB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001948/0.3455, allocations: 56.77 kB / 471 MB, free: 14.21 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.365e-05/0.3455, allocations: 11.98 kB / 471 MB, free: 14.2 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001648/0.3472, allocations: 1.61 MB / 472.7 MB, free: 12.49 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.3472, allocations: 0 / 472.7 MB, free: 12.49 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001964/0.3492, allocations: 0.9836 MB / 473.6 MB, free: 11.47 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009253/0.3501, allocations: 362.7 kB / 474 MB, free: 11.12 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001546/0.3502, allocations: 12 kB / 474 MB, free: 11.11 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005236/0.3508, allocations: 67.81 kB / 474.1 MB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001011/0.3509, allocations: 35.94 kB / 474.1 MB, free: 11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.422e-05/0.3509, allocations: 8 kB / 474.1 MB, free: 11 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003342/0.3542, allocations: 2.215 MB / 476.3 MB, free: 8.762 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3542, allocations: 0 / 476.3 MB, free: 8.762 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001075/0.3553, allocations: 267.5 kB / 476.6 MB, free: 8.5 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.001981/0.3573, allocations: 0.489 MB / 477.1 MB, free: 8.18 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001357/0.3586, allocations: 0.5847 MB / 477.7 MB, free: 7.582 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.3586, allocations: 0 / 477.7 MB, free: 7.582 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000658/0.3593, allocations: 363.2 kB / 478 MB, free: 7.215 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001176/0.3605, allocations: 263.2 kB / 478.3 MB, free: 6.957 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006117/0.3666, allocations: 3.623 MB / 481.9 MB, free: 3.289 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001156/0.3677, allocations: 0.908 MB / 482.8 MB, free: 2.352 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006893/0.3684, allocations: 290.8 kB / 483.1 MB, free: 2.062 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002536/0.3687, allocations: 91.44 kB / 483.2 MB, free: 1.973 MB / 382.1 MB Notification: Performance of SimCode: time 7.52e-07/0.3687, allocations: 0 / 483.2 MB, free: 1.973 MB / 382.1 MB Notification: Performance of Templates: time 0.03594/0.4046, allocations: 20.78 MB / 0.4921 GB, free: 13.34 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 5.204207945615053]