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.001615/0.001615, allocations: 112.2 kB / 21.19 MB, free: 0.7578 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.001756/0.001756, allocations: 209.8 kB / 24.49 MB, free: 4.133 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.4/1.4, allocations: 230.6 MB / 258.3 MB, free: 8.223 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.001579/0.001579, allocations: 51.92 kB / 379 MB, free: 2.664 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2552/0.2567, allocations: 53.36 MB / 432.4 MB, free: 6.945 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.008973/0.2657, allocations: 6.115 MB / 438.5 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004462/0.2702, allocations: 2.337 MB / 440.8 MB, free: 14.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007367/0.2709, allocations: 23.81 kB / 440.9 MB, free: 14.44 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001711/0.2726, allocations: 0.6302 MB / 441.5 MB, free: 13.81 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001268/0.2739, allocations: 449.7 kB / 441.9 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001121/0.275, allocations: 416.3 kB / 442.3 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002144/0.2772, allocations: 1.31 MB / 443.7 MB, free: 11.65 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00075/0.2779, allocations: 306.4 kB / 444 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000827/0.2787, allocations: 0.4945 MB / 444.4 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001006/0.2797, allocations: 0.6188 MB / 445.1 MB, free: 10.22 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002385/0.28, allocations: 120 kB / 445.2 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000411/0.2804, allocations: 172 kB / 445.4 MB, free: 9.934 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005295/0.2809, allocations: 0.6544 MB / 446 MB, free: 9.277 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008338/0.2817, allocations: 0.8933 MB / 446.9 MB, free: 8.379 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002685/0.2844, allocations: 2.642 MB / 449.5 MB, free: 5.727 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.2844, allocations: 0 / 449.5 MB, free: 5.727 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.2844, allocations: 3.938 kB / 449.5 MB, free: 5.723 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.794e-05/0.2845, allocations: 0 / 449.5 MB, free: 5.723 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.004082/0.2886, allocations: 2.366 MB / 451.9 MB, free: 3.312 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.512e-05/0.2886, allocations: 12.03 kB / 451.9 MB, free: 3.301 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003238/0.2889, allocations: 227.4 kB / 452.1 MB, free: 3.078 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002754/0.2917, allocations: 1.635 MB / 453.8 MB, free: 1.387 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000189/0.2919, allocations: 181.8 kB / 454 MB, free: 1.176 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000106/0.292, allocations: 63.95 kB / 454 MB, free: 1.113 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001453/0.2934, allocations: 0.8259 MB / 454.8 MB, free: 240 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.022e-05/0.2934, allocations: 3.938 kB / 454.8 MB, free: 236 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.471e-05/0.2935, allocations: 28 kB / 454.9 MB, free: 208 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.708e-05/0.2935, allocations: 16 kB / 454.9 MB, free: 192 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001081/0.2946, allocations: 0.5478 MB / 455.4 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006521/0.3011, allocations: 3.942 MB / 459.4 MB, free: 11.59 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001345/0.3025, allocations: 0.5124 MB / 459.9 MB, free: 11.07 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007808/0.3033, allocations: 346 kB / 460.2 MB, free: 10.73 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.017e-05/0.3033, allocations: 4.281 kB / 460.2 MB, free: 10.72 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.933e-05/0.3033, allocations: 38.84 kB / 460.3 MB, free: 10.68 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 2.304e-06/0.3033, allocations: 0 / 460.3 MB, free: 10.68 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002428/0.3058, allocations: 0.8769 MB / 461.2 MB, free: 9.789 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001589/0.3059, allocations: 261 kB / 461.4 MB, free: 9.473 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004491/0.3104, allocations: 3.164 MB / 464.6 MB, free: 6.273 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.459e-05/0.3105, allocations: 33.7 kB / 464.6 MB, free: 6.234 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008681/0.3114, allocations: 0.8577 MB / 465.5 MB, free: 5.371 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000137/0.3115, allocations: 126.9 kB / 465.6 MB, free: 5.246 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001736/0.3117, allocations: 102.1 kB / 465.7 MB, free: 5.141 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000158/0.3118, allocations: 318 kB / 466 MB, free: 4.824 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004827/0.3123, allocations: 208.9 kB / 466.2 MB, free: 4.617 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006254/0.3129, allocations: 398.9 kB / 466.6 MB, free: 4.156 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009908/0.3139, allocations: 0.5244 MB / 467.1 MB, free: 3.582 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.3139, allocations: 0 / 467.1 MB, free: 3.582 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001716/0.3156, allocations: 0.7853 MB / 467.9 MB, free: 2.785 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.097e-05/0.3157, allocations: 8.438 kB / 467.9 MB, free: 2.777 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.929e-06/0.3157, allocations: 8 kB / 467.9 MB, free: 2.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003059/0.316, allocations: 64.81 kB / 468 MB, free: 2.703 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004591/0.3164, allocations: 111.8 kB / 468.1 MB, free: 2.594 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001852/0.3183, allocations: 1.695 MB / 469.8 MB, free: 0.7852 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000666/0.319, allocations: 75.59 kB / 469.9 MB, free: 0.7109 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.856e-05/0.319, allocations: 19.98 kB / 469.9 MB, free: 0.6914 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.0009891/0.32, allocations: 0.6577 MB / 470.5 MB, free: 24 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003135/0.3203, allocations: 198.7 kB / 470.7 MB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003181/0.3206, allocations: 218.6 kB / 470.9 MB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.853e-06/0.3206, allocations: 11.92 kB / 471 MB, free: 15.6 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/0.3206, allocations: 3.938 kB / 471 MB, free: 15.6 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.3206, allocations: 0 / 471 MB, free: 15.6 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003667/0.3243, allocations: 2.13 MB / 473.1 MB, free: 13.4 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.129e-06/0.3243, allocations: 4 kB / 473.1 MB, free: 13.4 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003792/0.3247, allocations: 83.88 kB / 473.2 MB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001921/0.3249, allocations: 64.81 kB / 473.2 MB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.929e-05/0.3249, allocations: 8 kB / 473.2 MB, free: 13.24 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001605/0.3265, allocations: 1.636 MB / 474.9 MB, free: 11.5 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.3265, allocations: 8.125 kB / 474.9 MB, free: 11.49 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001894/0.3284, allocations: 0.985 MB / 475.9 MB, free: 10.47 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008819/0.3293, allocations: 366.6 kB / 476.2 MB, free: 10.11 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001579/0.3294, allocations: 16 kB / 476.2 MB, free: 10.1 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005159/0.33, allocations: 55.94 kB / 476.3 MB, free: 10.04 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001026/0.3301, allocations: 35.94 kB / 476.3 MB, free: 10.01 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.178e-05/0.3301, allocations: 12 kB / 476.3 MB, free: 9.996 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003161/0.3333, allocations: 2.263 MB / 478.6 MB, free: 7.715 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3333, allocations: 0 / 478.6 MB, free: 7.715 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009475/0.3342, allocations: 255.6 kB / 478.9 MB, free: 7.465 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.001744/0.3359, allocations: 470.5 kB / 479.3 MB, free: 7.184 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001368/0.3373, allocations: 0.5977 MB / 479.9 MB, free: 6.574 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.327e-06/0.3373, allocations: 0 / 479.9 MB, free: 6.574 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006598/0.338, allocations: 355 kB / 480.3 MB, free: 6.215 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001215/0.3392, allocations: 298.3 kB / 480.6 MB, free: 5.922 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006455/0.3456, allocations: 3.736 MB / 484.3 MB, free: 2.133 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001283/0.3469, allocations: 1.488 MB / 485.8 MB, free: 0.6172 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004313/0.3474, allocations: 95.42 kB / 485.9 MB, free: 0.5234 MB / 382.1 MB Notification: Performance of SimCode: time 1.172e-06/0.3474, allocations: 0 / 485.9 MB, free: 0.5234 MB / 382.1 MB Notification: Performance of Templates: time 0.04436/0.3917, allocations: 29.75 MB / 0.5035 GB, free: 2.832 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/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: 9.03122073598206]