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.001361/0.001361, allocations: 110.5 kB / 21.23 MB, free: 0.6641 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.001456/0.001456, allocations: 211.9 kB / 24.54 MB, free: 4.02 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.522/1.522, allocations: 230.3 MB / 258 MB, free: 8.227 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.001922/0.001922, allocations: 67.88 kB / 378.7 MB, free: 2.809 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2617/0.2636, allocations: 53.35 MB / 432.1 MB, free: 7.105 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.007474/0.2711, allocations: 5.606 MB / 437.7 MB, free: 1.477 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.003256/0.2743, allocations: 1.912 MB / 439.6 MB, free: 15.56 MB / 350.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0003231/0.2747, allocations: 15.88 kB / 439.6 MB, free: 15.55 MB / 350.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.001122/0.2758, allocations: 0.5252 MB / 440.2 MB, free: 15.02 MB / 350.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0007249/0.2765, allocations: 390 kB / 440.5 MB, free: 14.64 MB / 350.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0007925/0.2773, allocations: 374.8 kB / 440.9 MB, free: 14.27 MB / 350.1 MB
Notification: Performance of NFFlatten.flatten: time 0.001041/0.2783, allocations: 0.9 MB / 441.8 MB, free: 13.37 MB / 350.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0004338/0.2788, allocations: 229.4 kB / 442 MB, free: 13.14 MB / 350.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.000434/0.2792, allocations: 382.7 kB / 442.4 MB, free: 12.77 MB / 350.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0005907/0.2798, allocations: 458.4 kB / 442.8 MB, free: 12.32 MB / 350.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.000123/0.2799, allocations: 80 kB / 442.9 MB, free: 12.24 MB / 350.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0002271/0.2802, allocations: 127.9 kB / 443.1 MB, free: 12.12 MB / 350.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0005429/0.2807, allocations: 0.5882 MB / 443.6 MB, free: 11.53 MB / 350.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0006761/0.2814, allocations: 0.7338 MB / 444.4 MB, free: 10.79 MB / 350.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.002289/0.2837, allocations: 2.136 MB / 446.5 MB, free: 8.645 MB / 350.1 MB
Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.2837, allocations: 0 / 446.5 MB, free: 8.645 MB / 350.1 MB
Notification: Performance of FrontEnd: time 1.132e-06/0.2837, allocations: 0 / 446.5 MB, free: 8.645 MB / 350.1 MB
Notification: Performance of Transformations before backend: time 2.278e-05/0.2837, allocations: 4 kB / 446.5 MB, free: 8.641 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.003672/0.2874, allocations: 2.081 MB / 448.6 MB, free: 6.52 MB / 350.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.562e-05/0.2874, allocations: 8.031 kB / 448.6 MB, free: 6.512 MB / 350.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003061/0.2877, allocations: 195.7 kB / 448.8 MB, free: 6.32 MB / 350.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.002451/0.2902, allocations: 1.459 MB / 450.3 MB, free: 4.832 MB / 350.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001017/0.2903, allocations: 67.02 kB / 450.3 MB, free: 4.758 MB / 350.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 7.59e-05/0.2903, allocations: 48 kB / 450.4 MB, free: 4.711 MB / 350.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.001187/0.2915, allocations: 0.5893 MB / 451 MB, free: 4.074 MB / 350.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.491e-05/0.2915, allocations: 0 / 451 MB, free: 4.074 MB / 350.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.193e-05/0.2916, allocations: 23.98 kB / 451 MB, free: 4.051 MB / 350.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.525e-05/0.2916, allocations: 16 kB / 451 MB, free: 4.035 MB / 350.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007486/0.2924, allocations: 339.8 kB / 451.3 MB, free: 3.703 MB / 350.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004775/0.2971, allocations: 3.199 MB / 454.5 MB, free: 396 kB / 350.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.001159/0.2983, allocations: 360.8 kB / 454.9 MB, free: 28 kB / 350.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0005571/0.2989, allocations: 172.8 kB / 455 MB, free: 15.86 MB / 366.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 3.684e-05/0.2989, allocations: 0 / 455 MB, free: 15.86 MB / 366.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.89e-05/0.2989, allocations: 38.5 kB / 455.1 MB, free: 15.81 MB / 366.1 MB
Notification: Performance of pre-optimization done (n=21): time 1.954e-06/0.2989, allocations: 4 kB / 455.1 MB, free: 15.8 MB / 366.1 MB
Notification: Performance of matching and sorting (n=21): time 0.002789/0.3017, allocations: 0.6297 MB / 455.7 MB, free: 15.17 MB / 366.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001704/0.3019, allocations: 209.6 kB / 455.9 MB, free: 14.91 MB / 366.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004692/0.3066, allocations: 2.904 MB / 458.8 MB, free: 11.96 MB / 366.1 MB
Notification: Performance of collectPreVariables (initialization): time 7.734e-05/0.3067, allocations: 29.7 kB / 458.9 MB, free: 11.93 MB / 366.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0008158/0.3075, allocations: 0.79 MB / 459.6 MB, free: 11.13 MB / 366.1 MB
Notification: Performance of collectInitialBindings (initialization): time 9.785e-05/0.3076, allocations: 83.3 kB / 459.7 MB, free: 11.05 MB / 366.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001391/0.3077, allocations: 73.92 kB / 459.8 MB, free: 10.97 MB / 366.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001599/0.3079, allocations: 318 kB / 460.1 MB, free: 10.66 MB / 366.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003777/0.3083, allocations: 128.6 kB / 460.2 MB, free: 10.53 MB / 366.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005052/0.3088, allocations: 288.7 kB / 460.5 MB, free: 10.18 MB / 366.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0007803/0.3095, allocations: 357.4 kB / 460.9 MB, free: 9.781 MB / 366.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/0.3096, allocations: 0 / 460.9 MB, free: 9.781 MB / 366.1 MB
Notification: Performance of matching and sorting (n=40) (initialization): time 0.001541/0.3111, allocations: 0.5672 MB / 461.4 MB, free: 9.203 MB / 366.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.18e-05/0.3111, allocations: 8 kB / 461.4 MB, free: 9.195 MB / 366.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.198e-05/0.3111, allocations: 7.984 kB / 461.4 MB, free: 9.188 MB / 366.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0003009/0.3114, allocations: 56.83 kB / 461.5 MB, free: 9.129 MB / 366.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003236/0.3118, allocations: 84.02 kB / 461.6 MB, free: 9.047 MB / 366.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001941/0.3137, allocations: 1.601 MB / 463.2 MB, free: 7.332 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007223/0.3144, allocations: 71.8 kB / 463.3 MB, free: 7.262 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.676e-05/0.3144, allocations: 12 kB / 463.3 MB, free: 7.25 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.001037/0.3155, allocations: 0.5796 MB / 463.8 MB, free: 6.66 MB / 366.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004022/0.3159, allocations: 178.8 kB / 464 MB, free: 6.484 MB / 366.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001384/0.3173, allocations: 0.5065 MB / 464.5 MB, free: 5.969 MB / 366.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.3173, allocations: 4 kB / 464.5 MB, free: 5.965 MB / 366.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 2.094e-06/0.3173, allocations: 0 / 464.5 MB, free: 5.965 MB / 366.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.3173, allocations: 0 / 464.5 MB, free: 5.965 MB / 366.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003304/0.3206, allocations: 1.664 MB / 466.2 MB, free: 4.238 MB / 366.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.861e-05/0.3206, allocations: 7.938 kB / 466.2 MB, free: 4.23 MB / 366.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002598/0.3209, allocations: 39.97 kB / 466.2 MB, free: 4.191 MB / 366.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0002278/0.3211, allocations: 56.75 kB / 466.3 MB, free: 4.133 MB / 366.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.065e-05/0.3211, allocations: 0 / 466.3 MB, free: 4.133 MB / 366.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002091/0.3232, allocations: 1.582 MB / 467.9 MB, free: 2.438 MB / 366.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.3232, allocations: 0 / 467.9 MB, free: 2.438 MB / 366.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002086/0.3253, allocations: 0.7227 MB / 468.6 MB, free: 1.691 MB / 366.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.001099/0.3264, allocations: 310.8 kB / 468.9 MB, free: 1.387 MB / 366.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001605/0.3265, allocations: 8 kB / 468.9 MB, free: 1.379 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004653/0.327, allocations: 47.95 kB / 469 MB, free: 1.332 MB / 366.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001097/0.3271, allocations: 27.95 kB / 469 MB, free: 1.305 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.248e-05/0.3271, allocations: 12 kB / 469 MB, free: 1.293 MB / 366.1 MB
Notification: Performance of sorting global known variables: time 0.003369/0.3305, allocations: 2.075 MB / 471.1 MB, free: 15.19 MB / 382.1 MB
Notification: Performance of sort global known variables: time 7e-08/0.3305, allocations: 0 / 471.1 MB, free: 15.19 MB / 382.1 MB
Notification: Performance of remove unused functions: time 0.001113/0.3316, allocations: 199.7 kB / 471.3 MB, free: 15 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.001423/0.333, allocations: 356.7 kB / 471.6 MB, free: 14.75 MB / 382.1 MB
Notification: Performance of simCode: created initialization part: time 0.001324/0.3344, allocations: 434.5 kB / 472 MB, free: 14.32 MB / 382.1 MB
Notification: Performance of simCode: created event and clocks part: time 5.65e-06/0.3344, allocations: 3.938 kB / 472 MB, free: 14.31 MB / 382.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0005712/0.3349, allocations: 259.2 kB / 472.3 MB, free: 14.05 MB / 382.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001271/0.3362, allocations: 225.8 kB / 472.5 MB, free: 13.83 MB / 382.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005494/0.3417, allocations: 3.053 MB / 475.6 MB, free: 10.73 MB / 382.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00127/0.343, allocations: 1.358 MB / 476.9 MB, free: 9.344 MB / 382.1 MB
Notification: Performance of simCode: alias equations: time 0.0006093/0.3436, allocations: 242.9 kB / 477.2 MB, free: 9.102 MB / 382.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002138/0.3438, allocations: 79.44 kB / 477.2 MB, free: 9.023 MB / 382.1 MB
Notification: Performance of SimCode: time 1.123e-06/0.3438, allocations: 0 / 477.2 MB, free: 9.023 MB / 382.1 MB
Notification: Performance of Templates: time 0.03228/0.3761, allocations: 16.02 MB / 493.3 MB, free: 9.074 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.1953727481886744]