Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001553/0.001553, allocations: 109.6 kB / 18.45 MB, free: 4.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001938/0.001938, allocations: 212.9 kB / 19.4 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.177/2.177, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001921/0.001921, allocations: 59.91 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3888/0.3908, allocations: 50.54 MB / 409.9 MB, free: 1.605 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.01166/0.4025, allocations: 5.537 MB / 415.5 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00481/0.4074, allocations: 1.874 MB / 417.3 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000574/0.408, allocations: 12 kB / 417.3 MB, free: 10.15 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001631/0.4096, allocations: 0.5225 MB / 417.9 MB, free: 9.625 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001292/0.411, allocations: 385.9 kB / 418.2 MB, free: 9.246 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00138/0.4124, allocations: 382.8 kB / 418.6 MB, free: 8.875 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00164/0.4141, allocations: 0.8964 MB / 419.5 MB, free: 7.977 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007825/0.4149, allocations: 332.8 kB / 419.8 MB, free: 7.637 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006779/0.4156, allocations: 366.7 kB / 420.2 MB, free: 7.277 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008061/0.4164, allocations: 450.4 kB / 420.6 MB, free: 6.836 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000161/0.4166, allocations: 80 kB / 420.7 MB, free: 6.758 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003351/0.4169, allocations: 124 kB / 420.8 MB, free: 6.637 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006711/0.4176, allocations: 0.5843 MB / 421.4 MB, free: 6.051 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009455/0.4186, allocations: 0.7377 MB / 422.2 MB, free: 5.309 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003079/0.4217, allocations: 2.126 MB / 424.3 MB, free: 3.176 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.346e-06/0.4217, allocations: 0 / 424.3 MB, free: 3.176 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.4218, allocations: 0 / 424.3 MB, free: 3.176 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.808e-05/0.4218, allocations: 0 / 424.3 MB, free: 3.176 MB / 334.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.005577/0.4274, allocations: 2.087 MB / 426.4 MB, free: 1.031 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.82e-05/0.4275, allocations: 8.031 kB / 426.4 MB, free: 1.023 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004387/0.4279, allocations: 186.6 kB / 426.6 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004109/0.432, allocations: 1.506 MB / 428.1 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001322/0.4322, allocations: 66.7 kB / 428.1 MB, free: 15.22 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000124/0.4324, allocations: 47.98 kB / 428.2 MB, free: 15.17 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001756/0.4341, allocations: 0.5854 MB / 428.8 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.258e-05/0.4342, allocations: 3.938 kB / 428.8 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.114e-05/0.4343, allocations: 24 kB / 428.8 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.07e-05/0.4343, allocations: 19.94 kB / 428.8 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001236/0.4356, allocations: 335.8 kB / 429.1 MB, free: 14.17 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00803/0.4436, allocations: 3.242 MB / 432.4 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001914/0.4456, allocations: 382.1 kB / 432.7 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000789/0.4464, allocations: 188.8 kB / 432.9 MB, free: 10.24 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.713e-05/0.4464, allocations: 3.984 kB / 432.9 MB, free: 10.24 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.365e-05/0.4465, allocations: 38.56 kB / 433 MB, free: 10.19 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 3.417e-06/0.4465, allocations: 4 kB / 433 MB, free: 10.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.003255/0.4498, allocations: 0.6924 MB / 433.7 MB, free: 9.469 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001443/0.45, allocations: 209.6 kB / 433.9 MB, free: 9.215 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006525/0.4565, allocations: 2.904 MB / 436.8 MB, free: 6.266 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.993e-05/0.4566, allocations: 33.7 kB / 436.8 MB, free: 6.227 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001163/0.4578, allocations: 0.7815 MB / 437.6 MB, free: 5.434 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001266/0.458, allocations: 78.91 kB / 437.7 MB, free: 5.355 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001881/0.4582, allocations: 62.03 kB / 437.7 MB, free: 5.289 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001607/0.4583, allocations: 318 kB / 438 MB, free: 4.973 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005899/0.459, allocations: 128.6 kB / 438.2 MB, free: 4.848 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007464/0.4597, allocations: 288.7 kB / 438.4 MB, free: 4.496 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001219/0.461, allocations: 357.4 kB / 438.8 MB, free: 4.098 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.037e-06/0.461, allocations: 4 kB / 438.8 MB, free: 4.094 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002316/0.4633, allocations: 0.5625 MB / 439.4 MB, free: 3.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.714e-05/0.4634, allocations: 4 kB / 439.4 MB, free: 3.516 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/0.4634, allocations: 4 kB / 439.4 MB, free: 3.512 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004049/0.4638, allocations: 52.83 kB / 439.4 MB, free: 3.457 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000524/0.4643, allocations: 84.02 kB / 439.5 MB, free: 3.375 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002585/0.4669, allocations: 1.732 MB / 441.2 MB, free: 1.508 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001066/0.468, allocations: 55.56 kB / 441.3 MB, free: 1.453 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.198e-05/0.4681, allocations: 24.03 kB / 441.3 MB, free: 1.43 MB / 350.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.001303/0.4694, allocations: 0.5718 MB / 441.9 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005284/0.47, allocations: 169.9 kB / 442.1 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00212/0.4721, allocations: 0.5142 MB / 442.6 MB, free: 156 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.683e-06/0.4721, allocations: 0 / 442.6 MB, free: 156 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.085e-06/0.4722, allocations: 0 / 442.6 MB, free: 156 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.267e-06/0.4722, allocations: 0 / 442.6 MB, free: 156 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005046/0.4772, allocations: 1.7 MB / 444.3 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.009e-06/0.4773, allocations: 0 / 444.3 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004006/0.4777, allocations: 43.97 kB / 444.3 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002805/0.478, allocations: 48.77 kB / 444.4 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.935e-05/0.478, allocations: 4 kB / 444.4 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002365/0.4804, allocations: 1.677 MB / 446 MB, free: 12.47 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.4804, allocations: 3.938 kB / 446 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002615/0.4831, allocations: 0.7072 MB / 446.7 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001354/0.4845, allocations: 382.9 kB / 447.1 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002534/0.4847, allocations: 8 kB / 447.1 MB, free: 11.33 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008051/0.4855, allocations: 43.95 kB / 447.2 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001519/0.4857, allocations: 31.95 kB / 447.2 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.271e-05/0.4858, allocations: 8 kB / 447.2 MB, free: 11.25 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.005109/0.4909, allocations: 2.071 MB / 449.3 MB, free: 9.152 MB / 366.1 MB Notification: Performance of sort global known variables: time 9.72e-07/0.4909, allocations: 0 / 449.3 MB, free: 9.152 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001561/0.4925, allocations: 203.5 kB / 449.5 MB, free: 8.953 MB / 366.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.001462/0.494, allocations: 354.6 kB / 449.8 MB, free: 8.715 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001848/0.4959, allocations: 441.2 kB / 450.3 MB, free: 8.277 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.521e-06/0.4959, allocations: 4 kB / 450.3 MB, free: 8.273 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009735/0.4969, allocations: 267.2 kB / 450.5 MB, free: 8 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002082/0.499, allocations: 233.9 kB / 450.8 MB, free: 7.77 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009135/0.5082, allocations: 3.119 MB / 453.9 MB, free: 4.605 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001764/0.51, allocations: 1.355 MB / 455.2 MB, free: 3.219 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005612/0.5106, allocations: 83.38 kB / 455.3 MB, free: 3.137 MB / 366.1 MB Notification: Performance of SimCode: time 8.22e-07/0.5106, allocations: 0 / 455.3 MB, free: 3.137 MB / 366.1 MB Notification: Performance of Templates: time 0.06111/0.5717, allocations: 25.18 MB / 480.5 MB, free: 9.969 MB / 398.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches