Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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.001408/0.001408, allocations: 119.3 kB / 21.18 MB, free: 0.6289 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.00144/0.00144, allocations: 206.8 kB / 24.46 MB, free: 3.902 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.461/1.461, allocations: 230.4 MB / 258.1 MB, free: 8.152 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-beta.om/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_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001914/0.001914, allocations: 76 kB / 378.7 MB, free: 2.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.297/0.2989, allocations: 53.32 MB / 432 MB, free: 7.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.008025/0.3069, allocations: 5.587 MB / 437.6 MB, free: 1.816 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00349/0.3104, allocations: 1.905 MB / 439.5 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000516/0.3109, allocations: 15.94 kB / 439.5 MB, free: 15.89 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00121/0.3121, allocations: 0.5291 MB / 440.1 MB, free: 15.36 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008865/0.313, allocations: 382 kB / 440.5 MB, free: 14.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008451/0.3139, allocations: 385.1 kB / 440.8 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001061/0.3149, allocations: 0.8964 MB / 441.7 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004836/0.3154, allocations: 228.9 kB / 441.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004925/0.3159, allocations: 366.8 kB / 442.3 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005868/0.3165, allocations: 462.3 kB / 442.8 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000103/0.3166, allocations: 80 kB / 442.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002197/0.3168, allocations: 127.9 kB / 443 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000543/0.3174, allocations: 0.5805 MB / 443.5 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006419/0.318, allocations: 0.7454 MB / 444.3 MB, free: 11.13 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002202/0.3202, allocations: 2.132 MB / 446.4 MB, free: 8.992 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/0.3202, allocations: 3.984 kB / 446.4 MB, free: 8.988 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3202, allocations: 0 / 446.4 MB, free: 8.988 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.809e-05/0.3202, allocations: 0 / 446.4 MB, free: 8.988 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.003546/0.3238, allocations: 2.149 MB / 448.6 MB, free: 6.781 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.278e-05/0.3238, allocations: 12.03 kB / 448.6 MB, free: 6.77 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002913/0.3241, allocations: 191.7 kB / 448.8 MB, free: 6.582 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002545/0.3267, allocations: 1.519 MB / 450.3 MB, free: 5.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001046/0.3268, allocations: 66.69 kB / 450.4 MB, free: 4.945 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.142e-05/0.3269, allocations: 48 kB / 450.4 MB, free: 4.898 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001127/0.328, allocations: 0.5854 MB / 451 MB, free: 4.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.55e-05/0.328, allocations: 0 / 451 MB, free: 4.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.821e-05/0.3281, allocations: 24 kB / 451 MB, free: 4.246 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.52e-05/0.3281, allocations: 12 kB / 451 MB, free: 4.234 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000732/0.3288, allocations: 343.7 kB / 451.4 MB, free: 3.898 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005393/0.3342, allocations: 3.259 MB / 454.6 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00115/0.3354, allocations: 357.6 kB / 455 MB, free: 168 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005197/0.3359, allocations: 172.8 kB / 455.1 MB, free: 15.99 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.143e-05/0.3359, allocations: 7.938 kB / 455.1 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.837e-05/0.336, allocations: 38.5 kB / 455.2 MB, free: 15.94 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 2.635e-06/0.336, allocations: 0 / 455.2 MB, free: 15.94 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.002011/0.338, allocations: 0.7016 MB / 455.9 MB, free: 15.21 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001626/0.3382, allocations: 217.6 kB / 456.1 MB, free: 14.95 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004059/0.3422, allocations: 2.897 MB / 459 MB, free: 12 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.511e-05/0.3423, allocations: 29.7 kB / 459 MB, free: 11.97 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008589/0.3431, allocations: 0.79 MB / 459.8 MB, free: 11.17 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.74e-05/0.3432, allocations: 79.3 kB / 459.9 MB, free: 11.09 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001427/0.3434, allocations: 73.98 kB / 460 MB, free: 11.02 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000157/0.3435, allocations: 314 kB / 460.3 MB, free: 10.7 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003774/0.3439, allocations: 124.6 kB / 460.4 MB, free: 10.58 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005833/0.3445, allocations: 292.8 kB / 460.7 MB, free: 10.23 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007567/0.3452, allocations: 357.8 kB / 461 MB, free: 9.828 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.286e-06/0.3452, allocations: 4.062 kB / 461 MB, free: 9.824 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001355/0.3466, allocations: 0.5672 MB / 461.6 MB, free: 9.246 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.961e-05/0.3466, allocations: 8 kB / 461.6 MB, free: 9.238 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.078e-05/0.3466, allocations: 4.344 kB / 461.6 MB, free: 9.234 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002907/0.3469, allocations: 56.83 kB / 461.7 MB, free: 9.176 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003014/0.3472, allocations: 75.83 kB / 461.7 MB, free: 9.102 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001938/0.3492, allocations: 1.729 MB / 463.5 MB, free: 7.234 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005816/0.3498, allocations: 59.7 kB / 463.5 MB, free: 7.176 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.786e-05/0.3498, allocations: 16 kB / 463.5 MB, free: 7.16 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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 (36): * Single equations (assignments): 35 * 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 prepare postOptimizeDAE: time 0.0009732/0.3508, allocations: 0.5757 MB / 464.1 MB, free: 6.574 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002781/0.351, allocations: 174.8 kB / 464.3 MB, free: 6.402 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001282/0.3523, allocations: 0.5159 MB / 464.8 MB, free: 5.879 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.3523, allocations: 0 / 464.8 MB, free: 5.879 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.654e-06/0.3523, allocations: 128 / 464.8 MB, free: 5.879 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.3523, allocations: 4 kB / 464.8 MB, free: 5.875 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003067/0.3554, allocations: 1.698 MB / 466.5 MB, free: 4.105 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.3554, allocations: 0 / 466.5 MB, free: 4.105 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002442/0.3556, allocations: 43.97 kB / 466.5 MB, free: 4.062 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001902/0.3558, allocations: 48.86 kB / 466.6 MB, free: 4.012 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.178e-05/0.3559, allocations: 4 kB / 466.6 MB, free: 4.008 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001692/0.3575, allocations: 1.666 MB / 468.3 MB, free: 2.207 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.3575, allocations: 0 / 468.3 MB, free: 2.207 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001573/0.3591, allocations: 0.723 MB / 469 MB, free: 1.461 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008184/0.3599, allocations: 395.9 kB / 469.4 MB, free: 1.055 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001275/0.3601, allocations: 7.938 kB / 469.4 MB, free: 1.047 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004248/0.3605, allocations: 47.89 kB / 469.4 MB, free: 1 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001034/0.3606, allocations: 27.95 kB / 469.5 MB, free: 0.9727 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.062e-05/0.3606, allocations: 19.94 kB / 469.5 MB, free: 0.9531 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003062/0.3637, allocations: 2.071 MB / 471.5 MB, free: 14.86 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3637, allocations: 0 / 471.5 MB, free: 14.86 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008382/0.3645, allocations: 203.7 kB / 471.7 MB, free: 14.66 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (cell.cell.limIntegrator.y,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 (18): * Single equations (assignments): 17 * 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001342/0.3659, allocations: 359.6 kB / 472.1 MB, free: 14.44 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00116/0.367, allocations: 421.7 kB / 472.5 MB, free: 14.02 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.664e-06/0.367, allocations: 7.938 kB / 472.5 MB, free: 14.01 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000573/0.3676, allocations: 267.2 kB / 472.8 MB, free: 13.73 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001031/0.3686, allocations: 229.5 kB / 473 MB, free: 13.52 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005458/0.3741, allocations: 3.163 MB / 476.2 MB, free: 10.3 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001174/0.3753, allocations: 1.359 MB / 477.5 MB, free: 8.918 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003253/0.3756, allocations: 83.44 kB / 477.6 MB, free: 8.836 MB / 382.1 MB Notification: Performance of SimCode: time 8.42e-07/0.3756, allocations: 0 / 477.6 MB, free: 8.836 MB / 382.1 MB Notification: Performance of Templates: time 0.03878/0.4144, allocations: 24.97 MB / 0.4908 GB, free: 15.88 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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: 8.732726644724607]