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.001576/0.001576, allocations: 193.2 kB / 17.38 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.477/1.477, allocations: 226.6 MB / 244.7 MB, free: 6.461 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000745/0.000745, allocations: 101.7 kB / 296.8 MB, free: 6.691 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002508/0.0002508, allocations: 8 kB / 356.8 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1853/0.1856, allocations: 51.29 MB / 408 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.003803/0.1894, allocations: 4.813 MB / 412.9 MB, free: 22.86 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001888/0.1914, allocations: 1.756 MB / 414.6 MB, free: 21.12 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002375/0.1916, allocations: 11.94 kB / 414.6 MB, free: 21.11 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006469/0.1923, allocations: 490.4 kB / 415.1 MB, free: 20.62 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004091/0.1927, allocations: 332.6 kB / 415.4 MB, free: 20.3 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004957/0.1932, allocations: 262 kB / 415.7 MB, free: 20.06 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005288/0.1937, allocations: 0.7988 MB / 416.5 MB, free: 19.26 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003432/0.1941, allocations: 287.7 kB / 416.8 MB, free: 18.97 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001999/0.1943, allocations: 282.9 kB / 417 MB, free: 18.69 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002604/0.1946, allocations: 350.6 kB / 417.4 MB, free: 18.35 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.691e-05/0.1946, allocations: 28 kB / 417.4 MB, free: 18.32 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001344/0.1948, allocations: 75.98 kB / 417.5 MB, free: 18.25 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002576/0.195, allocations: 0.5454 MB / 418 MB, free: 17.7 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003546/0.1954, allocations: 0.654 MB / 418.7 MB, free: 17.04 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008487/0.1963, allocations: 1.718 MB / 420.4 MB, free: 15.31 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.1963, allocations: 4 kB / 420.4 MB, free: 15.31 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1963, allocations: 0 / 420.4 MB, free: 15.31 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.304e-05/0.1963, allocations: 0 / 420.4 MB, free: 15.31 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.001963/0.1983, allocations: 1.812 MB / 422.2 MB, free: 13.44 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.287e-05/0.1983, allocations: 11.97 kB / 422.2 MB, free: 13.43 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001756/0.1985, allocations: 190.6 kB / 422.4 MB, free: 13.24 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001531/0.2, allocations: 1.486 MB / 423.9 MB, free: 11.71 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001957/0.2002, allocations: 98.67 kB / 424 MB, free: 11.61 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.324e-05/0.2003, allocations: 48 kB / 424 MB, free: 11.56 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008524/0.2012, allocations: 0.5893 MB / 424.6 MB, free: 10.93 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.373e-05/0.2012, allocations: 0 / 424.6 MB, free: 10.93 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.467e-05/0.2012, allocations: 20 kB / 424.7 MB, free: 10.91 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.816e-06/0.2013, allocations: 12 kB / 424.7 MB, free: 10.89 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006162/0.2019, allocations: 355.7 kB / 425 MB, free: 10.55 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00335/0.2052, allocations: 3.297 MB / 428.3 MB, free: 7.125 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009505/0.2062, allocations: 426.4 kB / 428.7 MB, free: 6.699 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003925/0.2066, allocations: 196.1 kB / 428.9 MB, free: 6.508 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.109e-05/0.2066, allocations: 8 kB / 428.9 MB, free: 6.5 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.854e-05/0.2067, allocations: 38.56 kB / 429 MB, free: 6.453 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.472e-06/0.2067, allocations: 0 / 429 MB, free: 6.453 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.001584/0.2083, allocations: 0.7436 MB / 429.7 MB, free: 5.68 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.936e-05/0.2083, allocations: 213.6 kB / 429.9 MB, free: 5.422 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002633/0.211, allocations: 2.904 MB / 432.8 MB, free: 2.473 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.515e-05/0.211, allocations: 29.7 kB / 432.8 MB, free: 2.438 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004904/0.2115, allocations: 0.7894 MB / 433.6 MB, free: 1.641 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.79e-05/0.2116, allocations: 67 kB / 433.7 MB, free: 1.574 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.618e-05/0.2116, allocations: 19.88 kB / 433.7 MB, free: 1.555 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.292e-05/0.2116, allocations: 318 kB / 434 MB, free: 1.238 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003015/0.2119, allocations: 132.6 kB / 434.2 MB, free: 1.109 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003448/0.2123, allocations: 293 kB / 434.4 MB, free: 0.7539 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000587/0.2129, allocations: 379.9 kB / 434.8 MB, free: 340 kB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.2129, allocations: 0 / 434.8 MB, free: 340 kB / 298.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001236/0.2141, allocations: 0.629 MB / 435.4 MB, free: 15.69 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.928e-05/0.2142, allocations: 8.188 kB / 435.5 MB, free: 15.68 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.295e-06/0.2142, allocations: 8 kB / 435.5 MB, free: 15.67 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002563/0.2144, allocations: 60.81 kB / 435.5 MB, free: 15.61 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002848/0.2147, allocations: 83.83 kB / 435.6 MB, free: 15.53 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001456/0.2162, allocations: 1.576 MB / 437.2 MB, free: 13.82 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004359/0.2167, allocations: 67.66 kB / 437.2 MB, free: 13.75 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.502e-05/0.2167, allocations: 16 kB / 437.3 MB, free: 13.74 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.0006943/0.2174, allocations: 0.5795 MB / 437.8 MB, free: 13.15 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001791/0.2176, allocations: 161.9 kB / 438 MB, free: 12.99 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001136/0.2187, allocations: 0.5454 MB / 438.5 MB, free: 12.43 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/0.2187, allocations: 7.984 kB / 438.6 MB, free: 12.42 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.322e-06/0.2188, allocations: 0 / 438.6 MB, free: 12.42 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.2188, allocations: 7.875 kB / 438.6 MB, free: 12.41 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002477/0.2212, allocations: 1.731 MB / 440.3 MB, free: 10.62 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.2213, allocations: 0 / 440.3 MB, free: 10.62 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002256/0.2215, allocations: 52 kB / 440.3 MB, free: 10.57 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001551/0.2217, allocations: 48.83 kB / 440.4 MB, free: 10.52 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.021e-05/0.2217, allocations: 7.984 kB / 440.4 MB, free: 10.51 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001258/0.223, allocations: 1.525 MB / 441.9 MB, free: 8.848 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.223, allocations: 0 / 441.9 MB, free: 8.848 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0014/0.2244, allocations: 0.7602 MB / 442.7 MB, free: 8.062 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000513/0.2249, allocations: 382.9 kB / 443.1 MB, free: 7.668 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001165/0.225, allocations: 8 kB / 443.1 MB, free: 7.66 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004101/0.2254, allocations: 55.95 kB / 443.1 MB, free: 7.605 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.295e-05/0.2255, allocations: 31.89 kB / 443.1 MB, free: 7.574 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.083e-05/0.2256, allocations: 12 kB / 443.2 MB, free: 7.562 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002541/0.2281, allocations: 2.075 MB / 445.2 MB, free: 5.465 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.2281, allocations: 0 / 445.2 MB, free: 5.465 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006765/0.2288, allocations: 199.6 kB / 445.4 MB, free: 5.27 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.0007041/0.2295, allocations: 360.9 kB / 445.8 MB, free: 5.035 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001016/0.2305, allocations: 462.6 kB / 446.2 MB, free: 4.57 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.2306, allocations: 0.625 kB / 446.2 MB, free: 4.57 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00052/0.2311, allocations: 286.5 kB / 446.5 MB, free: 4.277 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001035/0.2321, allocations: 214.5 kB / 446.7 MB, free: 4.062 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00489/0.237, allocations: 3.489 MB / 450.2 MB, free: 0.5312 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009349/0.238, allocations: 1.351 MB / 451.6 MB, free: 15.15 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002383/0.2382, allocations: 79.44 kB / 451.6 MB, free: 15.07 MB / 330.7 MB Notification: Performance of SimCode: time 1.603e-06/0.2382, allocations: 4 kB / 451.6 MB, free: 15.07 MB / 330.7 MB Notification: Performance of Templates: time 0.03174/0.27, allocations: 24.52 MB / 476.2 MB, free: 6.555 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