Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.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.001426/0.001426, allocations: 107 kB / 21.18 MB, free: 0.6484 MB / 14.72 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.001969/0.001969, allocations: 215.4 kB / 24.48 MB, free: 3.941 MB / 14.72 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 2.141/2.141, allocations: 230.6 MB / 258.2 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] 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_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_4.1.0_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_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002174/0.002174, allocations: 43.94 kB / 379 MB, free: 2.469 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3185/0.3207, allocations: 53.37 MB / 432.3 MB, free: 6.715 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.01061/0.3313, allocations: 5.414 MB / 437.7 MB, free: 1.281 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005681/0.337, allocations: 2.178 MB / 439.9 MB, free: 15.1 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008422/0.3378, allocations: 23.81 kB / 439.9 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002199/0.34, allocations: 0.6058 MB / 440.5 MB, free: 14.47 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001567/0.3416, allocations: 457.7 kB / 441 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00133/0.3429, allocations: 417.5 kB / 441.4 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002451/0.3454, allocations: 1.31 MB / 442.7 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007503/0.3461, allocations: 310.3 kB / 443 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000955/0.3471, allocations: 0.5062 MB / 443.5 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001116/0.3482, allocations: 0.6033 MB / 444.1 MB, free: 10.87 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002312/0.3484, allocations: 123.9 kB / 444.2 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004766/0.3489, allocations: 172 kB / 444.4 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007321/0.3496, allocations: 0.6583 MB / 445.1 MB, free: 9.922 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001068/0.3507, allocations: 0.6641 MB / 445.7 MB, free: 9.254 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004291/0.355, allocations: 2.67 MB / 448.4 MB, free: 6.574 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.355, allocations: 0 / 448.4 MB, free: 6.574 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.355, allocations: 0 / 448.4 MB, free: 6.574 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.658e-05/0.3551, allocations: 4 kB / 448.4 MB, free: 6.57 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.008242/0.3633, allocations: 2.362 MB / 450.8 MB, free: 4.164 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.99e-05/0.3634, allocations: 8.031 kB / 450.8 MB, free: 4.156 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007509/0.3641, allocations: 227.5 kB / 451 MB, free: 3.934 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005727/0.3698, allocations: 1.639 MB / 452.6 MB, free: 2.238 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003332/0.3702, allocations: 189.8 kB / 452.8 MB, free: 2.02 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002168/0.3704, allocations: 63.95 kB / 452.9 MB, free: 1.957 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002984/0.3734, allocations: 1.173 MB / 454.1 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.208e-05/0.3734, allocations: 4 kB / 454.1 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001246/0.3735, allocations: 27.94 kB / 454.1 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.504e-05/0.3736, allocations: 16 kB / 454.1 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002034/0.3756, allocations: 0.5439 MB / 454.6 MB, free: 56 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0115/0.3871, allocations: 3.506 MB / 458.1 MB, free: 12.45 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002443/0.3895, allocations: 0.4957 MB / 458.6 MB, free: 11.95 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001431/0.391, allocations: 342.1 kB / 459 MB, free: 11.61 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.36e-05/0.391, allocations: 12.22 kB / 459 MB, free: 11.6 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.211e-05/0.3911, allocations: 38.84 kB / 459 MB, free: 11.55 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 3.778e-06/0.3911, allocations: 0 / 459 MB, free: 11.55 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.004515/0.3956, allocations: 0.8691 MB / 459.9 MB, free: 10.68 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000221/0.3958, allocations: 265 kB / 460.2 MB, free: 10.36 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008041/0.4038, allocations: 3.108 MB / 463.3 MB, free: 7.207 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000145/0.404, allocations: 37.7 kB / 463.3 MB, free: 7.164 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001544/0.4055, allocations: 0.8727 MB / 464.2 MB, free: 6.285 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002404/0.4058, allocations: 123 kB / 464.3 MB, free: 6.164 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003044/0.4061, allocations: 94.09 kB / 464.4 MB, free: 6.066 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002385/0.4063, allocations: 322 kB / 464.7 MB, free: 5.746 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009416/0.4073, allocations: 212.9 kB / 464.9 MB, free: 5.535 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001347/0.4086, allocations: 0.5965 MB / 465.5 MB, free: 4.816 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001861/0.4105, allocations: 0.5204 MB / 466 MB, free: 4.246 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.032e-05/0.4105, allocations: 4 kB / 466 MB, free: 4.242 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.003293/0.4138, allocations: 0.7739 MB / 466.8 MB, free: 3.457 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.288e-05/0.4138, allocations: 8 kB / 466.8 MB, free: 3.449 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.581e-05/0.4138, allocations: 4 kB / 466.8 MB, free: 3.445 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005452/0.4144, allocations: 69 kB / 466.9 MB, free: 3.375 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009626/0.4153, allocations: 119.8 kB / 467 MB, free: 3.258 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003434/0.4188, allocations: 1.668 MB / 468.7 MB, free: 1.488 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001547/0.4203, allocations: 59.7 kB / 468.7 MB, free: 1.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.817e-05/0.4204, allocations: 20.12 kB / 468.7 MB, free: 1.41 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.001706/0.4221, allocations: 0.6576 MB / 469.4 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007124/0.4228, allocations: 186.8 kB / 469.6 MB, free: 0.5586 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006302/0.4234, allocations: 222 kB / 469.8 MB, free: 348 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.804e-06/0.4234, allocations: 8.094 kB / 469.8 MB, free: 340 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.4234, allocations: 0 / 469.8 MB, free: 340 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.358e-06/0.4234, allocations: 3.984 kB / 469.8 MB, free: 336 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005501/0.4289, allocations: 1.832 MB / 471.6 MB, free: 14.45 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.92e-06/0.429, allocations: 4.062 kB / 471.7 MB, free: 14.44 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005613/0.4295, allocations: 79.89 kB / 471.7 MB, free: 14.36 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002672/0.4298, allocations: 56.81 kB / 471.8 MB, free: 14.3 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.485e-05/0.4298, allocations: 12 kB / 471.8 MB, free: 14.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002168/0.432, allocations: 1.602 MB / 473.4 MB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.432, allocations: 0 / 473.4 MB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003164/0.4352, allocations: 0.9845 MB / 474.4 MB, free: 11.58 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001905/0.4371, allocations: 366.6 kB / 474.7 MB, free: 11.22 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005586/0.4376, allocations: 23.92 kB / 474.8 MB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001013/0.4386, allocations: 55.95 kB / 474.8 MB, free: 11.14 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001774/0.4388, allocations: 35.94 kB / 474.9 MB, free: 11.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.566e-05/0.4389, allocations: 15.98 kB / 474.9 MB, free: 11.09 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.005176/0.444, allocations: 2.215 MB / 477.1 MB, free: 8.855 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.71e-07/0.444, allocations: 0 / 477.1 MB, free: 8.855 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001857/0.4459, allocations: 259.5 kB / 477.3 MB, free: 8.602 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.002593/0.4485, allocations: 0.5024 MB / 477.8 MB, free: 8.305 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002103/0.4506, allocations: 0.5938 MB / 478.4 MB, free: 7.699 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.101e-06/0.4506, allocations: 0 / 478.4 MB, free: 7.699 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001015/0.4516, allocations: 355.3 kB / 478.8 MB, free: 7.34 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002203/0.4538, allocations: 259.5 kB / 479 MB, free: 7.09 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01059/0.4644, allocations: 3.621 MB / 482.7 MB, free: 3.422 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001924/0.4663, allocations: 0.908 MB / 483.6 MB, free: 2.484 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001316/0.4676, allocations: 286.8 kB / 483.8 MB, free: 2.199 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004377/0.4681, allocations: 91.36 kB / 483.9 MB, free: 2.109 MB / 382.1 MB Notification: Performance of SimCode: time 1.292e-06/0.4681, allocations: 4 kB / 483.9 MB, free: 2.105 MB / 382.1 MB Notification: Performance of Templates: time 0.06653/0.5346, allocations: 20.93 MB / 0.493 GB, free: 13.37 MB / 414.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 7.580469043998164]