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.002097/0.002097, allocations: 83.16 kB / 20.68 MB, free: 1.039 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.00163/0.00163, allocations: 157.6 kB / 23.95 MB, free: 4.168 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.481/1.481, allocations: 177 MB / 204.1 MB, free: 9.18 MB / 190.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 1.563e-06/1.563e-06, allocations: 0 / 325 MB, free: 0.5 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.388e-05/2.544e-05, allocations: 2.281 kB / 325 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.00838/0.008405, allocations: 5.402 MB / 330.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004891/0.0133, allocations: 2.198 MB / 332.6 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005428/0.01384, allocations: 20.34 kB / 332.6 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001706/0.01555, allocations: 0.6117 MB / 333.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001264/0.01681, allocations: 475.5 kB / 333.7 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009957/0.01781, allocations: 414.9 kB / 334.1 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001669/0.01947, allocations: 1.349 MB / 335.4 MB, free: 9.465 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005848/0.02006, allocations: 299.6 kB / 335.7 MB, free: 9.266 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001011/0.02107, allocations: 0.7269 MB / 336.5 MB, free: 8.793 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007733/0.02184, allocations: 0.5029 MB / 337 MB, free: 8.52 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001681/0.02201, allocations: 117 kB / 337.1 MB, free: 8.52 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003916/0.0224, allocations: 177 kB / 337.3 MB, free: 8.496 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006433/0.02305, allocations: 0.6644 MB / 337.9 MB, free: 8.078 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007178/0.02376, allocations: 0.5278 MB / 338.4 MB, free: 7.621 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00298/0.02674, allocations: 2.594 MB / 341 MB, free: 5.02 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.02675, allocations: 0 / 341 MB, free: 5.02 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.02675, allocations: 4 kB / 341 MB, free: 5.016 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.341e-05/0.02678, allocations: 0 / 341 MB, free: 5.016 MB / 302.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.004365/0.03115, allocations: 2.342 MB / 343.4 MB, free: 2.625 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.806e-05/0.0312, allocations: 12.03 kB / 343.4 MB, free: 2.613 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003588/0.03156, allocations: 223.5 kB / 343.6 MB, free: 2.395 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002908/0.03446, allocations: 1.635 MB / 345.3 MB, free: 0.7031 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002074/0.03467, allocations: 182.4 kB / 345.4 MB, free: 0.4961 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001097/0.03478, allocations: 64.33 kB / 345.5 MB, free: 444 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001951/0.03673, allocations: 1.189 MB / 346.7 MB, free: 15.1 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/0.03675, allocations: 0 / 346.7 MB, free: 15.1 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.706e-05/0.03683, allocations: 31.94 kB / 346.7 MB, free: 15.07 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.712e-05/0.03685, allocations: 12 kB / 346.7 MB, free: 15.06 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001221/0.03807, allocations: 0.5516 MB / 347.3 MB, free: 14.51 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006327/0.04439, allocations: 3.483 MB / 350.8 MB, free: 10.93 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001456/0.04585, allocations: 0.4957 MB / 351.3 MB, free: 10.43 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008436/0.04669, allocations: 340.4 kB / 351.6 MB, free: 10.09 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.311e-05/0.04673, allocations: 4.281 kB / 351.6 MB, free: 10.09 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.41e-05/0.04678, allocations: 46.72 kB / 351.6 MB, free: 10.04 MB / 318.1 MB Notification: Performance of pre-optimization done (n=33): time 2.444e-06/0.04678, allocations: 3.938 kB / 351.6 MB, free: 10.03 MB / 318.1 MB Notification: Performance of matching and sorting (n=33): time 0.002962/0.04974, allocations: 0.8774 MB / 352.5 MB, free: 9.145 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002207/0.04996, allocations: 269 kB / 352.8 MB, free: 8.82 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005369/0.05533, allocations: 3.108 MB / 355.9 MB, free: 5.672 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001314/0.05547, allocations: 33.7 kB / 355.9 MB, free: 5.633 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001034/0.0565, allocations: 0.8727 MB / 356.8 MB, free: 4.75 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00019/0.05669, allocations: 127 kB / 356.9 MB, free: 4.625 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001833/0.05687, allocations: 90.16 kB / 357 MB, free: 4.531 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001831/0.05706, allocations: 329.9 kB / 357.3 MB, free: 4.203 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005509/0.05761, allocations: 208.9 kB / 357.5 MB, free: 4 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007765/0.05838, allocations: 0.5926 MB / 358.1 MB, free: 3.285 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001047/0.05943, allocations: 0.5168 MB / 358.6 MB, free: 2.719 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.429e-06/0.05943, allocations: 0 / 358.6 MB, free: 2.719 MB / 318.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001913/0.06135, allocations: 0.7779 MB / 359.4 MB, free: 1.93 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.231e-05/0.06137, allocations: 12.09 kB / 359.4 MB, free: 1.918 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.848e-06/0.06138, allocations: 4 kB / 359.4 MB, free: 1.914 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003332/0.06171, allocations: 64.81 kB / 359.5 MB, free: 1.848 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005051/0.06222, allocations: 107.9 kB / 359.6 MB, free: 1.742 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001997/0.06421, allocations: 1.664 MB / 361.3 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007658/0.06498, allocations: 79.67 kB / 361.3 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.99e-05/0.06502, allocations: 12 kB / 361.4 MB, free: 15.88 MB / 334.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.001051/0.06607, allocations: 0.6537 MB / 362 MB, free: 15.22 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004075/0.06648, allocations: 186.8 kB / 362.2 MB, free: 15.04 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004284/0.06691, allocations: 218.1 kB / 362.4 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.025e-06/0.06691, allocations: 0 / 362.4 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.06691, allocations: 4 kB / 362.4 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.06692, allocations: 0 / 362.4 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003808/0.07073, allocations: 1.836 MB / 364.2 MB, free: 12.94 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.436e-06/0.07073, allocations: 4 kB / 364.3 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00044/0.07117, allocations: 79.88 kB / 364.3 MB, free: 12.86 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000213/0.07138, allocations: 64.86 kB / 364.4 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.43e-05/0.07143, allocations: 12 kB / 364.4 MB, free: 12.78 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001829/0.07326, allocations: 1.602 MB / 366 MB, free: 11.07 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.07326, allocations: 3.938 kB / 366 MB, free: 11.07 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002259/0.07552, allocations: 0.9764 MB / 367 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001013/0.07653, allocations: 370.6 kB / 367.3 MB, free: 9.703 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002806/0.07681, allocations: 12 kB / 367.4 MB, free: 9.691 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006504/0.07746, allocations: 51.94 kB / 367.4 MB, free: 9.641 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001211/0.07758, allocations: 47.86 kB / 367.5 MB, free: 9.594 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.626e-05/0.07762, allocations: 12 kB / 367.5 MB, free: 9.582 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.003831/0.08145, allocations: 2.215 MB / 369.7 MB, free: 7.348 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.08145, allocations: 0 / 369.7 MB, free: 7.348 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.00118/0.08263, allocations: 271.4 kB / 369.9 MB, free: 7.082 MB / 334.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.002157/0.08479, allocations: 483 kB / 370.4 MB, free: 6.777 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001639/0.08643, allocations: 0.5885 MB / 371 MB, free: 6.176 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/0.08643, allocations: 0 / 371 MB, free: 6.176 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008156/0.08725, allocations: 355.3 kB / 371.4 MB, free: 5.816 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001496/0.08874, allocations: 258 kB / 371.6 MB, free: 5.562 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006878/0.09562, allocations: 3.537 MB / 375.1 MB, free: 1.98 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001313/0.09693, allocations: 0.9081 MB / 376.1 MB, free: 1.039 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000712/0.09765, allocations: 286.8 kB / 376.3 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003151/0.09796, allocations: 84.5 kB / 376.4 MB, free: 0.668 MB / 334.1 MB Notification: Performance of SimCode: time 9.92e-07/0.09796, allocations: 4 kB / 376.4 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of Templates: time 0.03835/0.1363, allocations: 19.09 MB / 395.5 MB, free: 13.71 MB / 366.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.093700014054775]