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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=24000,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=24000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001467/0.001467, allocations: 112.4 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001776/0.001776, allocations: 208 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.405/1.405, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001158/0.001158, allocations: 59.91 kB / 359.4 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2243/0.2254, allocations: 50.55 MB / 409.9 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.006786/0.2323, allocations: 6.055 MB / 416 MB, free: 11.47 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003779/0.2361, allocations: 2.295 MB / 418.3 MB, free: 9.168 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005208/0.2367, allocations: 15.94 kB / 418.3 MB, free: 9.152 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001436/0.2381, allocations: 0.638 MB / 418.9 MB, free: 8.512 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000873/0.239, allocations: 437.7 kB / 419.4 MB, free: 8.082 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009129/0.24, allocations: 406.5 kB / 419.7 MB, free: 7.691 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001757/0.2417, allocations: 1.325 MB / 421.1 MB, free: 6.359 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007775/0.2425, allocations: 467.1 kB / 421.5 MB, free: 5.883 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007716/0.2433, allocations: 0.4945 MB / 422 MB, free: 5.387 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009881/0.2443, allocations: 0.5799 MB / 422.6 MB, free: 4.805 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003697/0.2447, allocations: 120 kB / 422.7 MB, free: 4.688 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004864/0.2452, allocations: 183.9 kB / 422.9 MB, free: 4.508 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005428/0.2457, allocations: 0.6505 MB / 423.6 MB, free: 3.855 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009421/0.2467, allocations: 0.8855 MB / 424.4 MB, free: 2.965 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002392/0.2491, allocations: 2.64 MB / 427.1 MB, free: 324 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.2491, allocations: 0 / 427.1 MB, free: 324 kB / 334.1 MB Notification: Performance of FrontEnd: time 2.275e-06/0.2491, allocations: 0 / 427.1 MB, free: 324 kB / 334.1 MB Notification: Performance of Transformations before backend: time 2.789e-05/0.2491, allocations: 0 / 427.1 MB, free: 324 kB / 334.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.003824/0.253, allocations: 2.372 MB / 429.4 MB, free: 13.88 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.849e-05/0.253, allocations: 8.031 kB / 429.5 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003177/0.2534, allocations: 214.3 kB / 429.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002716/0.2561, allocations: 1.679 MB / 431.3 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001634/0.2563, allocations: 104.7 kB / 431.4 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.391e-05/0.2564, allocations: 60 kB / 431.5 MB, free: 11.74 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001512/0.2579, allocations: 0.8259 MB / 432.3 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.586e-05/0.2579, allocations: 0 / 432.3 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.267e-05/0.258, allocations: 32 kB / 432.4 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.584e-05/0.258, allocations: 19.94 kB / 432.4 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001242/0.2593, allocations: 0.5477 MB / 432.9 MB, free: 10.26 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006104/0.2654, allocations: 3.989 MB / 436.9 MB, free: 6.152 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001347/0.2668, allocations: 0.527 MB / 437.4 MB, free: 5.617 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007861/0.2676, allocations: 365.1 kB / 437.8 MB, free: 5.258 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.176e-05/0.2676, allocations: 4.281 kB / 437.8 MB, free: 5.254 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001084/0.2677, allocations: 50.78 kB / 437.9 MB, free: 5.195 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 2.485e-06/0.2677, allocations: 0 / 437.9 MB, free: 5.195 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.002596/0.2703, allocations: 0.9495 MB / 438.8 MB, free: 4.219 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003009/0.2706, allocations: 261 kB / 439.1 MB, free: 3.902 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004654/0.2753, allocations: 3.16 MB / 442.2 MB, free: 0.707 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.209e-05/0.2754, allocations: 33.7 kB / 442.3 MB, free: 0.668 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007445/0.2762, allocations: 0.8606 MB / 443.1 MB, free: 15.8 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002429/0.2764, allocations: 118.3 kB / 443.2 MB, free: 15.68 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001536/0.2766, allocations: 94.16 kB / 443.3 MB, free: 15.59 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001249/0.2767, allocations: 322 kB / 443.6 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006149/0.2773, allocations: 209 kB / 443.8 MB, free: 15.06 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006227/0.278, allocations: 405.9 kB / 444.2 MB, free: 14.59 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009954/0.279, allocations: 0.5204 MB / 444.8 MB, free: 14.02 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.279, allocations: 4 kB / 444.8 MB, free: 14.02 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.00156/0.2805, allocations: 0.7728 MB / 445.5 MB, free: 13.23 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.727e-05/0.2806, allocations: 4 kB / 445.5 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.2806, allocations: 4 kB / 445.5 MB, free: 13.22 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002957/0.2809, allocations: 77.03 kB / 445.6 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004617/0.2814, allocations: 115.9 kB / 445.7 MB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001774/0.2831, allocations: 1.79 MB / 447.5 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006728/0.2838, allocations: 71.5 kB / 447.6 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.447e-05/0.2839, allocations: 20 kB / 447.6 MB, free: 11.02 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.001071/0.285, allocations: 0.6536 MB / 448.3 MB, free: 10.35 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002716/0.2852, allocations: 197.6 kB / 448.5 MB, free: 10.16 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003101/0.2856, allocations: 222.6 kB / 448.7 MB, free: 9.934 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.2856, allocations: 4 kB / 448.7 MB, free: 9.93 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.2856, allocations: 0 / 448.7 MB, free: 9.93 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.2856, allocations: 0 / 448.7 MB, free: 9.93 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00338/0.289, allocations: 2.163 MB / 450.8 MB, free: 7.695 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.289, allocations: 0 / 450.8 MB, free: 7.695 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000393/0.2894, allocations: 79.89 kB / 450.9 MB, free: 7.617 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001898/0.2896, allocations: 64.94 kB / 451 MB, free: 7.551 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.211e-05/0.2896, allocations: 16 kB / 451 MB, free: 7.535 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001659/0.2913, allocations: 1.736 MB / 452.7 MB, free: 5.66 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.2913, allocations: 0 / 452.7 MB, free: 5.66 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002011/0.2933, allocations: 0.9872 MB / 453.7 MB, free: 4.645 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007493/0.2941, allocations: 442.6 kB / 454.2 MB, free: 4.191 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002057/0.2943, allocations: 12 kB / 454.2 MB, free: 4.18 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005696/0.2949, allocations: 55.89 kB / 454.2 MB, free: 4.125 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001131/0.295, allocations: 39.94 kB / 454.3 MB, free: 4.086 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.491e-05/0.295, allocations: 8 kB / 454.3 MB, free: 4.078 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00348/0.2985, allocations: 2.259 MB / 456.5 MB, free: 1.801 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2985, allocations: 0 / 456.5 MB, free: 1.801 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009251/0.2995, allocations: 255.5 kB / 456.8 MB, free: 1.551 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.00108/0.3006, allocations: 460 kB / 457.2 MB, free: 1.258 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001352/0.3019, allocations: 0.6201 MB / 457.8 MB, free: 0.625 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/0.3019, allocations: 4.125 kB / 457.8 MB, free: 0.6211 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006729/0.3026, allocations: 350.5 kB / 458.2 MB, free: 272 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001283/0.3039, allocations: 303.2 kB / 458.5 MB, free: 15.97 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006124/0.3101, allocations: 3.68 MB / 462.2 MB, free: 12.25 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001258/0.3113, allocations: 1.489 MB / 463.7 MB, free: 10.73 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003312/0.3117, allocations: 91.44 kB / 463.7 MB, free: 10.64 MB / 382.1 MB Notification: Performance of SimCode: time 9.11e-07/0.3117, allocations: 0 / 463.7 MB, free: 10.64 MB / 382.1 MB Notification: Performance of Templates: time 0.03859/0.3503, allocations: 29.7 MB / 493.4 MB, free: 12.97 MB / 414.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches