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.001398/0.001398, allocations: 115.8 kB / 20.43 MB, free: 1.457 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.001655/0.001655, allocations: 214.1 kB / 23.75 MB, free: 4.668 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 1.562/1.562, allocations: 230.6 MB / 257.5 MB, free: 7.988 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.001992/0.001992, allocations: 43.92 kB / 378.2 MB, free: 2.645 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2671/0.2691, allocations: 53.37 MB / 431.6 MB, free: 6.926 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.008718/0.2778, allocations: 6.12 MB / 437.7 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004324/0.2822, allocations: 2.333 MB / 440.1 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005088/0.2827, allocations: 19.88 kB / 440.1 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001462/0.2841, allocations: 0.6263 MB / 440.7 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008768/0.285, allocations: 457.6 kB / 441.2 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008715/0.2859, allocations: 423.1 kB / 441.6 MB, free: 12.94 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00156/0.2874, allocations: 1.313 MB / 442.9 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005484/0.288, allocations: 306.4 kB / 443.2 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006842/0.2887, allocations: 0.4984 MB / 443.7 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000784/0.2895, allocations: 0.6072 MB / 444.3 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001636/0.2896, allocations: 120 kB / 444.4 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003328/0.29, allocations: 183.9 kB / 444.6 MB, free: 9.898 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005546/0.2905, allocations: 0.6505 MB / 445.2 MB, free: 9.246 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008562/0.2914, allocations: 0.8894 MB / 446.1 MB, free: 8.352 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002923/0.2943, allocations: 2.642 MB / 448.8 MB, free: 5.699 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.239e-06/0.2943, allocations: 0 / 448.8 MB, free: 5.699 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.2943, allocations: 0 / 448.8 MB, free: 5.699 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.163e-05/0.2943, allocations: 0 / 448.8 MB, free: 5.699 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.00451/0.2989, allocations: 2.374 MB / 451.1 MB, free: 3.281 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.423e-05/0.2989, allocations: 15.91 kB / 451.2 MB, free: 3.266 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003656/0.2993, allocations: 227.5 kB / 451.4 MB, free: 3.043 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002769/0.302, allocations: 1.631 MB / 453 MB, free: 1.355 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001944/0.3022, allocations: 185.8 kB / 453.2 MB, free: 1.141 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001073/0.3023, allocations: 63.95 kB / 453.3 MB, free: 1.078 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0015/0.3038, allocations: 0.822 MB / 454.1 MB, free: 208 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.207e-05/0.3039, allocations: 4 kB / 454.1 MB, free: 204 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.519e-05/0.3039, allocations: 24 kB / 454.1 MB, free: 180 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.794e-05/0.3039, allocations: 16 kB / 454.1 MB, free: 164 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001071/0.305, allocations: 0.5516 MB / 454.7 MB, free: 15.61 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006172/0.3112, allocations: 3.946 MB / 458.6 MB, free: 11.55 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001321/0.3125, allocations: 0.5039 MB / 459.1 MB, free: 11.04 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007605/0.3133, allocations: 338.8 kB / 459.5 MB, free: 10.71 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.163e-05/0.3133, allocations: 8.281 kB / 459.5 MB, free: 10.7 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.66e-05/0.3133, allocations: 42.78 kB / 459.5 MB, free: 10.65 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 2.014e-06/0.3133, allocations: 0 / 459.5 MB, free: 10.65 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002335/0.3157, allocations: 0.8738 MB / 460.4 MB, free: 9.766 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001704/0.3158, allocations: 265 kB / 460.6 MB, free: 9.445 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004367/0.3202, allocations: 3.16 MB / 463.8 MB, free: 6.25 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.723e-05/0.3203, allocations: 33.7 kB / 463.8 MB, free: 6.211 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008676/0.3211, allocations: 0.8615 MB / 464.7 MB, free: 5.344 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001295/0.3213, allocations: 126.9 kB / 464.8 MB, free: 5.219 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002017/0.3215, allocations: 86.16 kB / 464.9 MB, free: 5.129 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001555/0.3216, allocations: 334 kB / 465.2 MB, free: 4.797 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004936/0.3221, allocations: 208.9 kB / 465.4 MB, free: 4.59 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006422/0.3228, allocations: 393.3 kB / 465.8 MB, free: 4.133 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009997/0.3238, allocations: 0.5283 MB / 466.3 MB, free: 3.555 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.3238, allocations: 4 kB / 466.3 MB, free: 3.551 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001749/0.3255, allocations: 0.7853 MB / 467.1 MB, free: 2.754 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.277e-05/0.3255, allocations: 8.438 kB / 467.1 MB, free: 2.746 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.748e-06/0.3256, allocations: 8 kB / 467.1 MB, free: 2.738 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00032/0.3259, allocations: 60.83 kB / 467.2 MB, free: 2.676 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004821/0.3264, allocations: 111.9 kB / 467.3 MB, free: 2.566 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002105/0.3285, allocations: 1.699 MB / 469 MB, free: 0.7539 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008176/0.3293, allocations: 71.59 kB / 469.1 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.822e-05/0.3293, allocations: 20 kB / 469.1 MB, free: 0.6641 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.001267/0.3306, allocations: 0.6597 MB / 469.8 MB, free: 15.99 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003652/0.331, allocations: 198.6 kB / 470 MB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003755/0.3313, allocations: 214.6 kB / 470.2 MB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/0.3313, allocations: 7.938 kB / 470.2 MB, free: 15.58 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/0.3313, allocations: 0 / 470.2 MB, free: 15.58 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.3313, allocations: 4 kB / 470.2 MB, free: 15.58 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003901/0.3352, allocations: 2.138 MB / 472.3 MB, free: 13.38 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.162e-06/0.3352, allocations: 4 kB / 472.3 MB, free: 13.37 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000423/0.3357, allocations: 79.88 kB / 472.4 MB, free: 13.29 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002377/0.3359, allocations: 72.81 kB / 472.5 MB, free: 13.22 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.078e-05/0.3359, allocations: 8 kB / 472.5 MB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001773/0.3377, allocations: 1.628 MB / 474.1 MB, free: 11.47 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.3377, allocations: 4.094 kB / 474.1 MB, free: 11.47 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002157/0.3399, allocations: 0.985 MB / 475.1 MB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00095/0.3408, allocations: 374.6 kB / 475.5 MB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001623/0.341, allocations: 12 kB / 475.5 MB, free: 10.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005364/0.3415, allocations: 51.95 kB / 475.5 MB, free: 10.02 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001203/0.3416, allocations: 43.92 kB / 475.6 MB, free: 9.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.73e-05/0.3417, allocations: 12.25 kB / 475.6 MB, free: 9.969 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003686/0.3454, allocations: 2.255 MB / 477.8 MB, free: 7.695 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.3454, allocations: 0 / 477.8 MB, free: 7.695 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001182/0.3465, allocations: 259.6 kB / 478.1 MB, free: 7.441 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.001938/0.3485, allocations: 488.4 kB / 478.6 MB, free: 7.145 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001587/0.3501, allocations: 0.5885 MB / 479.2 MB, free: 6.543 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.21e-06/0.3501, allocations: 4 kB / 479.2 MB, free: 6.539 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006778/0.3507, allocations: 347.1 kB / 479.5 MB, free: 6.188 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001297/0.352, allocations: 298.7 kB / 479.8 MB, free: 5.895 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006435/0.3585, allocations: 3.642 MB / 483.4 MB, free: 2.207 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001321/0.3598, allocations: 1.5 MB / 484.9 MB, free: 0.6797 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007225/0.3605, allocations: 299.3 kB / 485.2 MB, free: 392 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002642/0.3608, allocations: 91.44 kB / 485.3 MB, free: 300 kB / 382.1 MB Notification: Performance of SimCode: time 8.81e-07/0.3608, allocations: 0 / 485.3 MB, free: 300 kB / 382.1 MB Notification: Performance of Templates: time 0.03551/0.3963, allocations: 17.77 MB / 0.4913 GB, free: 14.66 MB / 414.1 MB " [Timeout remaining time 660] 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 -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/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_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: 5.592701715882868]