Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_Cell.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Electrical.Batteries.Examples.CCCV_Cell") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009483/0.0009482, allocations: 196.5 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.299/1.299, allocations: 226.6 MB / 244.3 MB, free: 6.57 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007593/0.0007593, allocations: 98.12 kB / 296.4 MB, free: 6.773 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001936/0.0001937, allocations: 7.984 kB / 356.2 MB, free: 10.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1882/0.1884, allocations: 51.29 MB / 407.5 MB, free: 27.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.003715/0.1921, allocations: 4.814 MB / 412.3 MB, free: 22.96 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001816/0.194, allocations: 1.743 MB / 414 MB, free: 21.23 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002109/0.1942, allocations: 17.56 kB / 414.1 MB, free: 21.21 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006449/0.1949, allocations: 482.4 kB / 414.5 MB, free: 20.74 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003938/0.1953, allocations: 334.7 kB / 414.9 MB, free: 20.41 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000487/0.1958, allocations: 255.5 kB / 415.1 MB, free: 20.17 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005035/0.1963, allocations: 0.7793 MB / 415.9 MB, free: 19.39 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003051/0.1966, allocations: 252 kB / 416.1 MB, free: 19.13 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002005/0.1968, allocations: 282.9 kB / 416.4 MB, free: 18.86 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002822/0.1971, allocations: 350.6 kB / 416.8 MB, free: 18.51 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.018e-05/0.1971, allocations: 32 kB / 416.8 MB, free: 18.48 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001279/0.1973, allocations: 67.98 kB / 416.9 MB, free: 18.41 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002534/0.1975, allocations: 0.5454 MB / 417.4 MB, free: 17.87 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001499/0.1977, allocations: 288.8 kB / 417.7 MB, free: 17.58 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008536/0.1986, allocations: 1.718 MB / 419.4 MB, free: 15.86 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.1986, allocations: 0 / 419.4 MB, free: 15.86 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.1986, allocations: 4 kB / 419.4 MB, free: 15.85 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.605e-05/0.1986, allocations: 0 / 419.4 MB, free: 15.85 MB / 298.7 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.002015/0.2006, allocations: 1.827 MB / 421.2 MB, free: 13.96 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.363e-05/0.2007, allocations: 16.03 kB / 421.2 MB, free: 13.95 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001854/0.2009, allocations: 185.7 kB / 421.4 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001563/0.2024, allocations: 1.405 MB / 422.8 MB, free: 12.32 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001908/0.2026, allocations: 98.67 kB / 422.9 MB, free: 12.21 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.445e-05/0.2027, allocations: 44 kB / 423 MB, free: 12.17 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000849/0.2035, allocations: 0.5972 MB / 423.6 MB, free: 11.53 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.385e-05/0.2036, allocations: 3.938 kB / 423.6 MB, free: 11.53 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.237e-05/0.2036, allocations: 16 kB / 423.6 MB, free: 11.51 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.237e-06/0.2036, allocations: 16 kB / 423.6 MB, free: 11.5 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005992/0.2042, allocations: 351.8 kB / 423.9 MB, free: 11.15 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003216/0.2075, allocations: 3.286 MB / 427.2 MB, free: 7.746 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001033/0.2085, allocations: 434.6 kB / 427.7 MB, free: 7.316 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004103/0.2089, allocations: 193.1 kB / 427.8 MB, free: 7.125 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.977e-05/0.209, allocations: 4.188 kB / 427.9 MB, free: 7.121 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.986e-05/0.209, allocations: 42.69 kB / 427.9 MB, free: 7.07 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 2.535e-06/0.209, allocations: 3.984 kB / 427.9 MB, free: 7.066 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.001661/0.2107, allocations: 0.7512 MB / 428.6 MB, free: 6.289 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.697e-05/0.2107, allocations: 225.5 kB / 428.9 MB, free: 6.02 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002618/0.2134, allocations: 2.893 MB / 431.8 MB, free: 3.082 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.528e-05/0.2134, allocations: 29.7 kB / 431.8 MB, free: 3.047 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004834/0.2139, allocations: 0.7855 MB / 432.6 MB, free: 2.254 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.848e-05/0.214, allocations: 78.91 kB / 432.7 MB, free: 2.176 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.372e-05/0.214, allocations: 4 kB / 432.7 MB, free: 2.172 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.833e-05/0.214, allocations: 318 kB / 433 MB, free: 1.855 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002974/0.2143, allocations: 132.6 kB / 433.1 MB, free: 1.727 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003403/0.2147, allocations: 293 kB / 433.4 MB, free: 1.371 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003104/0.215, allocations: 157.5 kB / 433.5 MB, free: 1.219 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.215, allocations: 0 / 433.5 MB, free: 1.219 MB / 298.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001111/0.2161, allocations: 0.6327 MB / 434.2 MB, free: 0.5742 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.014e-05/0.2162, allocations: 14.83 kB / 434.2 MB, free: 0.5625 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.2162, allocations: 8 kB / 434.2 MB, free: 0.5547 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002563/0.2164, allocations: 56.83 kB / 434.2 MB, free: 0.4961 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002591/0.2167, allocations: 75.89 kB / 434.3 MB, free: 432 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001477/0.2182, allocations: 1.588 MB / 435.9 MB, free: 14.7 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000409/0.2186, allocations: 67.75 kB / 436 MB, free: 14.64 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.508e-05/0.2186, allocations: 15.98 kB / 436 MB, free: 14.62 MB / 314.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0006541/0.2193, allocations: 0.5795 MB / 436.6 MB, free: 14.03 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001827/0.2195, allocations: 165.8 kB / 436.7 MB, free: 13.87 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001144/0.2207, allocations: 0.5493 MB / 437.3 MB, free: 13.3 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.2207, allocations: 4 kB / 437.3 MB, free: 13.3 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.572e-06/0.2207, allocations: 0 / 437.3 MB, free: 13.3 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.2207, allocations: 0 / 437.3 MB, free: 13.3 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002463/0.2232, allocations: 1.723 MB / 439 MB, free: 11.51 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.2232, allocations: 0 / 439 MB, free: 11.51 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002454/0.2234, allocations: 59.94 kB / 439.1 MB, free: 11.45 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001479/0.2236, allocations: 48.81 kB / 439.1 MB, free: 11.4 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.707e-05/0.2236, allocations: 8 kB / 439.1 MB, free: 11.39 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001295/0.2249, allocations: 1.529 MB / 440.7 MB, free: 9.727 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.2249, allocations: 0 / 440.7 MB, free: 9.727 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001426/0.2264, allocations: 0.7563 MB / 441.4 MB, free: 8.945 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005146/0.2269, allocations: 390.9 kB / 441.8 MB, free: 8.543 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001139/0.227, allocations: 8 kB / 441.8 MB, free: 8.535 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004208/0.2274, allocations: 55.95 kB / 441.9 MB, free: 8.48 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.308e-05/0.2275, allocations: 31.94 kB / 441.9 MB, free: 8.449 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.664e-05/0.2276, allocations: 8 kB / 441.9 MB, free: 8.441 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002557/0.2301, allocations: 2.071 MB / 444 MB, free: 6.348 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2301, allocations: 0 / 444 MB, free: 6.348 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006576/0.2308, allocations: 195.6 kB / 444.2 MB, free: 6.156 MB / 314.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.00076/0.2316, allocations: 359.6 kB / 444.5 MB, free: 5.918 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001027/0.2326, allocations: 458.7 kB / 445 MB, free: 5.457 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.2326, allocations: 0.625 kB / 445 MB, free: 5.457 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005489/0.2332, allocations: 298.5 kB / 445.2 MB, free: 5.152 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009321/0.2341, allocations: 206.6 kB / 445.4 MB, free: 4.945 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005181/0.2393, allocations: 3.477 MB / 448.9 MB, free: 1.422 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001009/0.2403, allocations: 1.355 MB / 450.3 MB, free: 36 kB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000255/0.2406, allocations: 83.48 kB / 450.4 MB, free: 15.95 MB / 330.7 MB Notification: Performance of SimCode: time 7.32e-07/0.2406, allocations: 0 / 450.4 MB, free: 15.95 MB / 330.7 MB Notification: Performance of Templates: time 0.03123/0.2718, allocations: 24.56 MB / 474.9 MB, free: 7.398 MB / 346.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_Cell --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_Cell.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches