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.00234/0.00234, allocations: 107.5 kB / 20.97 MB, free: 3.449 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.002643/0.002643, allocations: 156.8 kB / 24.27 MB, free: 156 kB / 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 1.577/1.577, allocations: 177 MB / 204.4 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 178] 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.1..v|cell.cell.capacitor.2..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.1..v|cell.cell.capacitor.2..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.362e-06/1.362e-06, allocations: 0 / 272.2 MB, free: 1.805 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.456e-05/3.592e-05, allocations: 2.312 kB / 272.2 MB, free: 1.801 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.009091/0.009127, allocations: 5.92 MB / 278.1 MB, free: 11.84 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004232/0.01336, allocations: 2.263 MB / 280.4 MB, free: 9.574 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004043/0.01376, allocations: 19.88 kB / 280.4 MB, free: 9.555 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001531/0.01529, allocations: 0.6066 MB / 281 MB, free: 8.945 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009656/0.01626, allocations: 477.3 kB / 281.5 MB, free: 8.477 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009051/0.01716, allocations: 407.2 kB / 281.9 MB, free: 8.078 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001881/0.01905, allocations: 1.344 MB / 283.2 MB, free: 6.73 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005325/0.01958, allocations: 294.3 kB / 283.5 MB, free: 6.43 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009086/0.02049, allocations: 0.7213 MB / 284.2 MB, free: 5.707 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007569/0.02124, allocations: 0.5184 MB / 284.7 MB, free: 5.188 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001865/0.02143, allocations: 116 kB / 284.8 MB, free: 5.074 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003389/0.02177, allocations: 175.9 kB / 285 MB, free: 4.902 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000644/0.02241, allocations: 0.6662 MB / 285.7 MB, free: 4.234 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006748/0.02309, allocations: 0.5336 MB / 286.2 MB, free: 3.699 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003301/0.02639, allocations: 2.594 MB / 288.8 MB, free: 1.098 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.374e-06/0.0264, allocations: 0 / 288.8 MB, free: 1.098 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.0264, allocations: 0 / 288.8 MB, free: 1.098 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.135e-05/0.02646, allocations: 0 / 288.8 MB, free: 1.098 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.1483/0.1747, allocations: 2.667 MB / 291.5 MB, free: 27.21 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.685e-05/0.1748, allocations: 9.938 kB / 291.5 MB, free: 27.21 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000524/0.1753, allocations: 276.4 kB / 291.8 MB, free: 27.07 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002752/0.1781, allocations: 1.242 MB / 293 MB, free: 26.48 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000167/0.1782, allocations: 181.9 kB / 293.2 MB, free: 26.3 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001259/0.1784, allocations: 66.19 kB / 293.2 MB, free: 26.28 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001598/0.18, allocations: 1.238 MB / 294.5 MB, free: 25.36 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.243e-05/0.18, allocations: 8.984 kB / 294.5 MB, free: 25.36 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.038e-05/0.18, allocations: 27.94 kB / 294.5 MB, free: 25.34 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.7e-05/0.1801, allocations: 18.22 kB / 294.5 MB, free: 25.33 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009641/0.181, allocations: 0.5032 MB / 295 MB, free: 25.16 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007215/0.1882, allocations: 4.444 MB / 299.5 MB, free: 22.5 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001203/0.1894, allocations: 483.3 kB / 299.9 MB, free: 22.31 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007223/0.1902, allocations: 330.8 kB / 300.3 MB, free: 22.21 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.971e-05/0.1902, allocations: 5.656 kB / 300.3 MB, free: 22.21 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.471e-05/0.1902, allocations: 45.97 kB / 300.3 MB, free: 22.17 MB / 266.7 MB Notification: Performance of pre-optimization done (n=33): time 2.144e-06/0.1902, allocations: 0 / 300.3 MB, free: 22.17 MB / 266.7 MB Notification: Performance of matching and sorting (n=33): time 0.00224/0.1925, allocations: 0.7821 MB / 301.1 MB, free: 21.86 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.386e-05/0.1925, allocations: 270.8 kB / 301.4 MB, free: 21.54 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003589/0.1961, allocations: 2.617 MB / 304 MB, free: 20.46 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.956e-05/0.1962, allocations: 33.3 kB / 304 MB, free: 20.42 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009181/0.1971, allocations: 1.172 MB / 305.2 MB, free: 19.58 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.877e-05/0.1972, allocations: 133.3 kB / 305.3 MB, free: 19.48 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001524/0.1973, allocations: 124.7 kB / 305.4 MB, free: 19.41 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.326e-05/0.1974, allocations: 0.5135 MB / 306 MB, free: 18.91 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003491/0.1978, allocations: 182.9 kB / 306.1 MB, free: 18.85 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00046/0.1982, allocations: 0.6461 MB / 306.8 MB, free: 18.19 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006944/0.1989, allocations: 0.5505 MB / 307.3 MB, free: 17.63 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.1989, allocations: 3.938 kB / 307.3 MB, free: 17.62 MB / 266.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001214/0.2001, allocations: 0.7479 MB / 308.1 MB, free: 16.88 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/0.2002, allocations: 8 kB / 308.1 MB, free: 16.87 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.2002, allocations: 4 kB / 308.1 MB, free: 16.87 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002471/0.2004, allocations: 69.14 kB / 308.2 MB, free: 16.8 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004036/0.2008, allocations: 110.9 kB / 308.3 MB, free: 16.69 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001226/0.202, allocations: 2.266 MB / 310.5 MB, free: 14.3 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005414/0.2026, allocations: 59.67 kB / 310.6 MB, free: 14.25 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.997e-05/0.2026, allocations: 28.05 kB / 310.6 MB, free: 14.22 MB / 266.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 (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.0003416/0.203, allocations: 320.3 kB / 310.9 MB, free: 13.89 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000198/0.2032, allocations: 194.8 kB / 311.1 MB, free: 13.7 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000189/0.2033, allocations: 158.1 kB / 311.3 MB, free: 13.55 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.2033, allocations: 4 kB / 311.3 MB, free: 13.55 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.2034, allocations: 0.5 kB / 311.3 MB, free: 13.55 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.2034, allocations: 9.109 kB / 311.3 MB, free: 13.54 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003415/0.2068, allocations: 2.361 MB / 313.6 MB, free: 11.13 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.2068, allocations: 3.625 kB / 313.7 MB, free: 11.13 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003434/0.2071, allocations: 83.89 kB / 313.7 MB, free: 11.05 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001575/0.2073, allocations: 55.66 kB / 313.8 MB, free: 10.99 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.844e-05/0.2073, allocations: 11.98 kB / 313.8 MB, free: 10.98 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001212/0.2085, allocations: 2.217 MB / 316 MB, free: 8.645 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.2085, allocations: 0.625 kB / 316 MB, free: 8.645 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001452/0.21, allocations: 0.9675 MB / 317 MB, free: 7.645 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008236/0.2108, allocations: 338.6 kB / 317.3 MB, free: 7.312 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001565/0.211, allocations: 15.94 kB / 317.3 MB, free: 7.297 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004518/0.2114, allocations: 47.72 kB / 317.4 MB, free: 7.254 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001147/0.2115, allocations: 43.91 kB / 317.4 MB, free: 7.211 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.385e-05/0.2115, allocations: 12 kB / 317.4 MB, free: 7.199 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001806/0.2133, allocations: 1.485 MB / 318.9 MB, free: 5.695 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2133, allocations: 0 / 318.9 MB, free: 5.695 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007872/0.2141, allocations: 263.5 kB / 319.2 MB, free: 5.438 MB / 266.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.003209/0.2173, allocations: 499.4 kB / 319.7 MB, free: 5.207 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001011/0.2184, allocations: 0.6507 MB / 320.3 MB, free: 4.535 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.2184, allocations: 4 kB / 320.3 MB, free: 4.531 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004782/0.2188, allocations: 403.3 kB / 320.7 MB, free: 4.117 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001045/0.2199, allocations: 258.5 kB / 321 MB, free: 3.863 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003528/0.2234, allocations: 2.969 MB / 323.9 MB, free: 0.8359 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006921/0.2241, allocations: 0.8456 MB / 324.8 MB, free: 15.96 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0005132/0.2246, allocations: 190.8 kB / 325 MB, free: 15.77 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002584/0.2249, allocations: 88.5 kB / 325.1 MB, free: 15.68 MB / 282.7 MB Notification: Performance of SimCode: time 1.012e-06/0.2249, allocations: 0 / 325.1 MB, free: 15.68 MB / 282.7 MB Notification: Performance of Templates: time 0.03787/0.2627, allocations: 19.09 MB / 344.1 MB, free: 12.73 MB / 298.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.214605254936032]