Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.001327/0.001327, allocations: 106.9 kB / 19.8 MB, free: 2.5 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.001564/0.001564, allocations: 219.4 kB / 23 MB, free: 5.578 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.508/1.508, allocations: 230.2 MB / 256.2 MB, free: 8.539 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_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001806/0.001806, allocations: 63.89 kB / 376.5 MB, free: 3.629 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3101/0.3119, allocations: 53.33 MB / 429.8 MB, free: 7.703 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.007883/0.3198, allocations: 5.594 MB / 435.4 MB, free: 2.078 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003662/0.3234, allocations: 1.905 MB / 437.3 MB, free: 172 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005499/0.324, allocations: 15.94 kB / 437.3 MB, free: 156 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001209/0.3252, allocations: 0.5213 MB / 437.8 MB, free: 15.63 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008392/0.326, allocations: 386 kB / 438.2 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009146/0.327, allocations: 378.5 kB / 438.6 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001224/0.3282, allocations: 0.8925 MB / 439.5 MB, free: 13.99 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004632/0.3286, allocations: 232.9 kB / 439.7 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004493/0.3291, allocations: 370.7 kB / 440.1 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005401/0.3296, allocations: 462.3 kB / 440.5 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001053/0.3297, allocations: 83.98 kB / 440.6 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002135/0.3299, allocations: 116 kB / 440.7 MB, free: 12.74 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004776/0.3304, allocations: 0.5882 MB / 441.3 MB, free: 12.15 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000663/0.3311, allocations: 0.7415 MB / 442 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002186/0.3333, allocations: 2.136 MB / 444.2 MB, free: 9.258 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.3333, allocations: 0 / 444.2 MB, free: 9.258 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3333, allocations: 0 / 444.2 MB, free: 9.258 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.027e-05/0.3333, allocations: 0 / 444.2 MB, free: 9.258 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.003737/0.3371, allocations: 2.141 MB / 446.3 MB, free: 7.059 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.854e-05/0.3371, allocations: 12.03 kB / 446.3 MB, free: 7.047 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003148/0.3374, allocations: 191.7 kB / 446.5 MB, free: 6.859 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002874/0.3403, allocations: 1.527 MB / 448 MB, free: 5.289 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001059/0.3404, allocations: 67.02 kB / 448.1 MB, free: 5.219 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.436e-05/0.3405, allocations: 48 kB / 448.1 MB, free: 5.172 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001177/0.3417, allocations: 0.5854 MB / 448.7 MB, free: 4.543 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.942e-05/0.3417, allocations: 3.984 kB / 448.7 MB, free: 4.539 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.458e-05/0.3417, allocations: 24 kB / 448.8 MB, free: 4.516 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.38e-05/0.3417, allocations: 12 kB / 448.8 MB, free: 4.504 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000777/0.3425, allocations: 347.7 kB / 449.1 MB, free: 4.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00573/0.3483, allocations: 3.251 MB / 452.4 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001079/0.3493, allocations: 358.1 kB / 452.7 MB, free: 444 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004614/0.3498, allocations: 176.8 kB / 452.9 MB, free: 264 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.835e-05/0.3498, allocations: 4 kB / 452.9 MB, free: 260 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.27e-05/0.3499, allocations: 38.55 kB / 452.9 MB, free: 212 kB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 2.144e-06/0.3499, allocations: 0 / 452.9 MB, free: 212 kB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.00211/0.352, allocations: 0.7084 MB / 453.6 MB, free: 15.47 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000155/0.3521, allocations: 209.6 kB / 453.8 MB, free: 15.22 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004077/0.3562, allocations: 2.897 MB / 456.7 MB, free: 12.28 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.864e-05/0.3563, allocations: 33.7 kB / 456.8 MB, free: 12.24 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008047/0.3571, allocations: 0.7899 MB / 457.6 MB, free: 11.44 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.132e-05/0.3572, allocations: 75.38 kB / 457.6 MB, free: 11.36 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001376/0.3573, allocations: 73.97 kB / 457.7 MB, free: 11.29 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001597/0.3575, allocations: 317.9 kB / 458 MB, free: 10.97 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003359/0.3578, allocations: 124.6 kB / 458.1 MB, free: 10.85 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004654/0.3583, allocations: 292.8 kB / 458.4 MB, free: 10.49 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007177/0.359, allocations: 362.2 kB / 458.8 MB, free: 10.09 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.359, allocations: 0 / 458.8 MB, free: 10.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001388/0.3604, allocations: 0.5626 MB / 459.3 MB, free: 9.516 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.427e-05/0.3604, allocations: 8 kB / 459.3 MB, free: 9.508 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/0.3604, allocations: 8.312 kB / 459.4 MB, free: 9.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002995/0.3607, allocations: 56.83 kB / 459.4 MB, free: 9.441 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002908/0.361, allocations: 71.89 kB / 459.5 MB, free: 9.371 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001839/0.3629, allocations: 1.736 MB / 461.2 MB, free: 7.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005946/0.3635, allocations: 59.7 kB / 461.3 MB, free: 7.441 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.16e-05/0.3635, allocations: 16 kB / 461.3 MB, free: 7.426 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.00109/0.3646, allocations: 0.5795 MB / 461.9 MB, free: 6.836 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003323/0.3649, allocations: 174.8 kB / 462 MB, free: 6.664 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00134/0.3662, allocations: 0.5103 MB / 462.5 MB, free: 6.141 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.3663, allocations: 4 kB / 462.6 MB, free: 6.137 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.342e-06/0.3663, allocations: 0 / 462.6 MB, free: 6.137 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.3663, allocations: 0 / 462.6 MB, free: 6.137 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002832/0.3691, allocations: 1.69 MB / 464.2 MB, free: 4.375 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/0.3691, allocations: 3.938 kB / 464.2 MB, free: 4.371 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00023/0.3693, allocations: 47.91 kB / 464.3 MB, free: 4.324 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001695/0.3695, allocations: 44.86 kB / 464.3 MB, free: 4.277 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.3e-05/0.3695, allocations: 11.98 kB / 464.3 MB, free: 4.266 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001672/0.3712, allocations: 1.666 MB / 466 MB, free: 2.461 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.3712, allocations: 0 / 466 MB, free: 2.461 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001657/0.3728, allocations: 0.7192 MB / 466.7 MB, free: 1.719 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006224/0.3735, allocations: 395.8 kB / 467.1 MB, free: 1.312 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001272/0.3736, allocations: 4 kB / 467.1 MB, free: 1.309 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004023/0.374, allocations: 43.95 kB / 467.2 MB, free: 1.266 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.72e-05/0.3741, allocations: 27.95 kB / 467.2 MB, free: 1.238 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.035e-05/0.3741, allocations: 16 kB / 467.2 MB, free: 1.223 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003068/0.3772, allocations: 2.079 MB / 469.3 MB, free: 15.12 MB / 382.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3772, allocations: 0 / 469.3 MB, free: 15.12 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008684/0.3781, allocations: 195.7 kB / 469.5 MB, free: 14.93 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.001378/0.3794, allocations: 362.2 kB / 469.8 MB, free: 14.68 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00117/0.3806, allocations: 433.3 kB / 470.3 MB, free: 14.25 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.135e-06/0.3806, allocations: 0 / 470.3 MB, free: 14.25 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005255/0.3811, allocations: 263.2 kB / 470.5 MB, free: 13.98 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00116/0.3823, allocations: 222.2 kB / 470.7 MB, free: 13.76 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00612/0.3884, allocations: 3.064 MB / 473.8 MB, free: 10.66 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001109/0.3895, allocations: 1.363 MB / 475.2 MB, free: 9.266 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006624/0.3902, allocations: 241.7 kB / 475.4 MB, free: 9.027 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000206/0.3904, allocations: 79.44 kB / 475.5 MB, free: 8.949 MB / 382.1 MB Notification: Performance of SimCode: time 1.282e-06/0.3904, allocations: 0 / 475.5 MB, free: 8.949 MB / 382.1 MB Notification: Performance of Templates: time 0.03253/0.4229, allocations: 15.93 MB / 491.4 MB, free: 9.102 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.184112309478223]