Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.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.0008587/0.0008587, allocations: 85.91 kB / 22.22 MB, free: 2.285 MB / 18.57 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.001305/0.001305, allocations: 154.4 kB / 25.61 MB, free: 8.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.988/0.988, allocations: 177 MB / 205.9 MB, free: 4.438 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_CellRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.capacitor.[0-9,]+..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_trunk_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.[0-9,]+..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.403e-06/1.403e-06, allocations: 0 / 274.1 MB, free: 4.301 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.118e-05/2.258e-05, allocations: 2.312 kB / 274.1 MB, free: 4.297 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.01804/0.01806, allocations: 5.83 MB / 279.9 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003146/0.02121, allocations: 2.244 MB / 282.2 MB, free: 12.2 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004996/0.02171, allocations: 19.88 kB / 282.2 MB, free: 12.18 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001137/0.02284, allocations: 0.6182 MB / 282.8 MB, free: 11.56 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007514/0.0236, allocations: 465.3 kB / 283.3 MB, free: 11.11 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006527/0.02425, allocations: 415.2 kB / 283.7 MB, free: 10.7 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001507/0.02575, allocations: 1.34 MB / 285 MB, free: 9.359 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000445/0.0262, allocations: 290.3 kB / 285.3 MB, free: 9.059 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000815/0.02701, allocations: 0.7251 MB / 286 MB, free: 8.332 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005469/0.02756, allocations: 0.5028 MB / 286.5 MB, free: 7.828 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.676e-05/0.02766, allocations: 116 kB / 286.6 MB, free: 7.715 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002426/0.0279, allocations: 171.9 kB / 286.8 MB, free: 7.547 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003225/0.02822, allocations: 0.6623 MB / 287.5 MB, free: 6.883 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003875/0.02861, allocations: 0.5258 MB / 288 MB, free: 6.355 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001135/0.02975, allocations: 1.471 MB / 289.5 MB, free: 4.879 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.02975, allocations: 4 kB / 289.5 MB, free: 4.875 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.02975, allocations: 0 / 289.5 MB, free: 4.875 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.925e-05/0.02977, allocations: 0 / 289.5 MB, free: 4.875 MB / 266.7 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.002111/0.03188, allocations: 2.473 MB / 291.9 MB, free: 2.352 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.092e-05/0.03191, allocations: 12.03 kB / 291.9 MB, free: 2.34 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005006/0.03241, allocations: 271.5 kB / 292.2 MB, free: 2.074 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009543/0.03337, allocations: 1.071 MB / 293.3 MB, free: 0.9453 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00011/0.03348, allocations: 190.4 kB / 293.5 MB, free: 0.7305 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.569e-05/0.03354, allocations: 64.38 kB / 293.5 MB, free: 0.668 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007044/0.03425, allocations: 0.9343 MB / 294.5 MB, free: 15.57 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.468e-05/0.03426, allocations: 4 kB / 294.5 MB, free: 15.57 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.183e-05/0.03431, allocations: 28 kB / 294.5 MB, free: 15.54 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.061e-05/0.03432, allocations: 16 kB / 294.5 MB, free: 15.53 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002297/0.03455, allocations: 180.9 kB / 294.7 MB, free: 15.35 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002718/0.03726, allocations: 3.04 MB / 297.7 MB, free: 12.21 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000421/0.03768, allocations: 288 kB / 298 MB, free: 11.92 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002537/0.03794, allocations: 188.1 kB / 298.2 MB, free: 11.73 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.191e-05/0.03796, allocations: 8.219 kB / 298.2 MB, free: 11.72 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.782e-05/0.03799, allocations: 45.67 kB / 298.2 MB, free: 11.67 MB / 282.7 MB Notification: Performance of pre-optimization done (n=33): time 1.754e-06/0.03799, allocations: 0 / 298.2 MB, free: 11.67 MB / 282.7 MB Notification: Performance of matching and sorting (n=33): time 0.0008156/0.0388, allocations: 0.4941 MB / 298.7 MB, free: 11.16 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003935/0.0392, allocations: 261 kB / 299 MB, free: 10.85 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001707/0.04091, allocations: 2.086 MB / 301.1 MB, free: 8.715 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.38e-05/0.04094, allocations: 33.7 kB / 301.1 MB, free: 8.676 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007033/0.04164, allocations: 1.077 MB / 302.2 MB, free: 7.59 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.264e-05/0.04172, allocations: 130.9 kB / 302.3 MB, free: 7.461 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001135/0.04184, allocations: 99.77 kB / 302.4 MB, free: 7.355 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001334/0.04197, allocations: 0.5042 MB / 302.9 MB, free: 6.844 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.96e-05/0.04205, allocations: 48.95 kB / 303 MB, free: 6.797 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002704/0.04232, allocations: 498.9 kB / 303.5 MB, free: 6.16 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000251/0.04257, allocations: 298.5 kB / 303.7 MB, free: 5.801 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.04258, allocations: 0 / 303.7 MB, free: 5.801 MB / 282.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0005569/0.04313, allocations: 487.3 kB / 304.2 MB, free: 5.312 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.13e-05/0.04315, allocations: 11.98 kB / 304.2 MB, free: 5.301 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.103e-06/0.04316, allocations: 4 kB / 304.2 MB, free: 5.297 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001522/0.04331, allocations: 44.14 kB / 304.3 MB, free: 5.25 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002386/0.04355, allocations: 107.8 kB / 304.4 MB, free: 5.145 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001464/0.04502, allocations: 2.091 MB / 306.5 MB, free: 2.941 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003061/0.04532, allocations: 67.67 kB / 306.5 MB, free: 2.875 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.053e-05/0.04534, allocations: 15.94 kB / 306.6 MB, free: 2.859 MB / 282.7 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 (cell.cell.limIntegrator.local_reset,cell.limIntegrator.local_reset,energy.local_reset,cccvCharger.CV) * 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.0002519/0.04559, allocations: 192.4 kB / 306.7 MB, free: 2.66 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001582/0.04575, allocations: 198.8 kB / 306.9 MB, free: 2.465 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001596/0.04591, allocations: 154.1 kB / 307.1 MB, free: 2.312 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.04592, allocations: 4 kB / 307.1 MB, free: 2.309 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.04592, allocations: 3.984 kB / 307.1 MB, free: 2.305 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.04592, allocations: 0 / 307.1 MB, free: 2.305 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001604/0.04753, allocations: 1.404 MB / 308.5 MB, free: 0.8516 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.04753, allocations: 0 / 308.5 MB, free: 0.8516 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001875/0.04772, allocations: 83.89 kB / 308.6 MB, free: 0.7695 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001006/0.04782, allocations: 39.66 kB / 308.6 MB, free: 0.7266 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.076e-05/0.04784, allocations: 7.984 kB / 308.6 MB, free: 0.7188 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009434/0.04878, allocations: 2.059 MB / 310.7 MB, free: 14.55 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.04879, allocations: 4.062 kB / 310.7 MB, free: 14.55 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006021/0.04939, allocations: 0.6347 MB / 311.3 MB, free: 13.88 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003344/0.04972, allocations: 294.6 kB / 311.6 MB, free: 13.59 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.783e-05/0.04981, allocations: 8 kB / 311.6 MB, free: 13.58 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002205/0.05003, allocations: 39.97 kB / 311.7 MB, free: 13.54 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.274e-05/0.0501, allocations: 39.92 kB / 311.7 MB, free: 13.5 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.632e-05/0.05012, allocations: 8 kB / 311.7 MB, free: 13.5 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0009565/0.05108, allocations: 1.129 MB / 312.8 MB, free: 12.35 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.05108, allocations: 0 / 312.8 MB, free: 12.35 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005673/0.05164, allocations: 271.5 kB / 313.1 MB, free: 12.08 MB / 298.7 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.001113/0.05276, allocations: 442.8 kB / 313.5 MB, free: 11.79 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004787/0.05323, allocations: 398.2 kB / 313.9 MB, free: 11.38 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.05324, allocations: 4.938 kB / 313.9 MB, free: 11.38 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000212/0.05345, allocations: 293.7 kB / 314.2 MB, free: 11.07 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006573/0.05411, allocations: 269.9 kB / 314.5 MB, free: 10.8 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003256/0.05736, allocations: 2.82 MB / 317.3 MB, free: 7.922 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003098/0.05767, allocations: 415.4 kB / 317.7 MB, free: 7.492 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003312/0.058, allocations: 170.8 kB / 317.9 MB, free: 7.32 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004595/0.05846, allocations: 354 kB / 318.2 MB, free: 6.973 MB / 298.7 MB Notification: Performance of SimCode: time 1.062e-06/0.05847, allocations: 0 / 318.2 MB, free: 6.973 MB / 298.7 MB Notification: Performance of Templates: time 0.02682/0.08528, allocations: 20.72 MB / 338.9 MB, free: 2.402 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.4682990619912744]