Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001618/0.001618, allocations: 96.03 kB / 21.18 MB, free: 0.5312 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001441/0.001441, allocations: 187.5 kB / 24.46 MB, free: 3.863 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.479/1.479, allocations: 225.7 MB / 253.3 MB, free: 12.85 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001634/0.001634, allocations: 51.91 kB / 371.6 MB, free: 9.219 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2557/0.2574, allocations: 52.18 MB / 423.8 MB, free: 14.51 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.007764/0.2651, allocations: 5.368 MB / 429.2 MB, free: 9.117 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00375/0.2689, allocations: 2.018 MB / 431.2 MB, free: 7.098 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003993/0.2693, allocations: 19.88 kB / 431.2 MB, free: 7.078 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001411/0.2707, allocations: 0.6069 MB / 431.8 MB, free: 6.469 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008249/0.2715, allocations: 425.7 kB / 432.2 MB, free: 6.051 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008781/0.2724, allocations: 405.5 kB / 432.6 MB, free: 5.66 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001477/0.2739, allocations: 1.298 MB / 433.9 MB, free: 4.359 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005522/0.2744, allocations: 286.3 kB / 434.2 MB, free: 4.062 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006621/0.2751, allocations: 0.5062 MB / 434.7 MB, free: 3.555 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000756/0.2758, allocations: 0.5681 MB / 435.3 MB, free: 2.984 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001645/0.276, allocations: 116 kB / 435.4 MB, free: 2.871 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003195/0.2763, allocations: 175.9 kB / 435.6 MB, free: 2.699 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000531/0.2768, allocations: 0.6584 MB / 436.2 MB, free: 2.039 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006942/0.2775, allocations: 0.668 MB / 436.9 MB, free: 1.367 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002671/0.2802, allocations: 2.654 MB / 439.5 MB, free: 14.7 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.2802, allocations: 4 kB / 439.6 MB, free: 14.7 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2802, allocations: 0 / 439.6 MB, free: 14.7 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.024e-05/0.2803, allocations: 0 / 439.6 MB, free: 14.7 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.004253/0.2845, allocations: 2.354 MB / 441.9 MB, free: 12.3 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.862e-05/0.2845, allocations: 12.03 kB / 441.9 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003353/0.2849, allocations: 223.5 kB / 442.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002837/0.2877, allocations: 1.632 MB / 443.8 MB, free: 10.38 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001815/0.2879, allocations: 181.8 kB / 443.9 MB, free: 10.17 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.818e-05/0.288, allocations: 60 kB / 444 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00171/0.2897, allocations: 1.193 MB / 445.2 MB, free: 8.781 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.782e-05/0.2897, allocations: 0 / 445.2 MB, free: 8.781 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.504e-05/0.2898, allocations: 32 kB / 445.2 MB, free: 8.75 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.708e-05/0.2898, allocations: 16 kB / 445.2 MB, free: 8.734 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001168/0.291, allocations: 0.5516 MB / 445.8 MB, free: 8.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006326/0.2973, allocations: 3.494 MB / 449.3 MB, free: 4.582 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001474/0.2988, allocations: 0.5074 MB / 449.8 MB, free: 4.066 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007721/0.2996, allocations: 330.1 kB / 450.1 MB, free: 3.742 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.659e-05/0.2996, allocations: 4.281 kB / 450.1 MB, free: 3.738 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.056e-05/0.2996, allocations: 42.84 kB / 450.2 MB, free: 3.688 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 2.083e-06/0.2996, allocations: 4 kB / 450.2 MB, free: 3.684 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.002533/0.3022, allocations: 0.8622 MB / 451 MB, free: 2.812 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001858/0.3023, allocations: 265 kB / 451.3 MB, free: 2.492 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00485/0.3072, allocations: 3.103 MB / 454.4 MB, free: 15.35 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001054/0.3073, allocations: 37.64 kB / 454.4 MB, free: 15.3 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009006/0.3082, allocations: 0.8766 MB / 455.3 MB, free: 14.42 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001536/0.3084, allocations: 126.9 kB / 455.4 MB, free: 14.3 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001707/0.3085, allocations: 94.14 kB / 455.5 MB, free: 14.2 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000166/0.3087, allocations: 322 kB / 455.8 MB, free: 13.88 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005106/0.3092, allocations: 208.9 kB / 456 MB, free: 13.68 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008676/0.3101, allocations: 0.5923 MB / 456.6 MB, free: 12.96 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001073/0.3111, allocations: 0.5167 MB / 457.2 MB, free: 12.39 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.07e-06/0.3111, allocations: 0 / 457.2 MB, free: 12.39 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001953/0.3131, allocations: 0.7779 MB / 457.9 MB, free: 11.61 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.126e-05/0.3131, allocations: 4 kB / 457.9 MB, free: 11.6 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.017e-05/0.3131, allocations: 4 kB / 457.9 MB, free: 11.6 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003156/0.3134, allocations: 72.75 kB / 458 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004928/0.3139, allocations: 120 kB / 458.1 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001915/0.3159, allocations: 1.664 MB / 459.8 MB, free: 9.645 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007484/0.3166, allocations: 71.67 kB / 459.9 MB, free: 9.574 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.755e-05/0.3166, allocations: 20 kB / 459.9 MB, free: 9.555 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.001085/0.3177, allocations: 0.646 MB / 460.5 MB, free: 8.898 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003244/0.318, allocations: 186.8 kB / 460.7 MB, free: 8.715 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003229/0.3184, allocations: 217.9 kB / 460.9 MB, free: 8.5 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.3184, allocations: 4 kB / 460.9 MB, free: 8.496 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.836e-06/0.3184, allocations: 0 / 460.9 MB, free: 8.496 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.75e-06/0.3184, allocations: 7.984 kB / 460.9 MB, free: 8.488 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003779/0.3222, allocations: 1.828 MB / 462.8 MB, free: 6.609 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.3222, allocations: 0 / 462.8 MB, free: 6.609 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003972/0.3226, allocations: 84 kB / 462.8 MB, free: 6.527 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002029/0.3228, allocations: 56.83 kB / 462.9 MB, free: 6.469 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.17e-05/0.3228, allocations: 11.98 kB / 462.9 MB, free: 6.457 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00185/0.3246, allocations: 1.618 MB / 464.5 MB, free: 4.742 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.3247, allocations: 0 / 464.5 MB, free: 4.742 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002095/0.3267, allocations: 0.9719 MB / 465.5 MB, free: 3.742 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001044/0.3278, allocations: 366.7 kB / 465.9 MB, free: 3.383 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000162/0.328, allocations: 15.88 kB / 465.9 MB, free: 3.367 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005188/0.3285, allocations: 51.95 kB / 465.9 MB, free: 3.316 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001108/0.3286, allocations: 43.92 kB / 466 MB, free: 3.273 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.692e-05/0.3286, allocations: 12 kB / 466 MB, free: 3.262 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00325/0.3319, allocations: 2.203 MB / 468.2 MB, free: 1.039 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3319, allocations: 0 / 468.2 MB, free: 1.039 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008988/0.3328, allocations: 259.6 kB / 468.4 MB, free: 0.7852 MB / 366.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.001902/0.3347, allocations: 0.5038 MB / 468.9 MB, free: 0.4922 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001369/0.336, allocations: 0.598 MB / 469.5 MB, free: 15.88 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.711e-06/0.336, allocations: 4.25 kB / 469.5 MB, free: 15.88 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006787/0.3367, allocations: 347.2 kB / 469.9 MB, free: 15.53 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001199/0.3379, allocations: 252.5 kB / 470.1 MB, free: 15.28 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006716/0.3446, allocations: 3.776 MB / 473.9 MB, free: 11.45 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001184/0.3458, allocations: 0.8961 MB / 474.8 MB, free: 10.52 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004286/0.3462, allocations: 91.42 kB / 474.9 MB, free: 10.43 MB / 382.1 MB Notification: Performance of SimCode: time 1.312e-06/0.3462, allocations: 0 / 474.9 MB, free: 10.43 MB / 382.1 MB Notification: Performance of Templates: time 0.04389/0.3901, allocations: 29.67 MB / 0.4927 GB, free: 12.8 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.041571165435016]