Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.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_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_cpp_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_cpp_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009349/0.000935, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.253/1.253, allocations: 226.6 MB / 244.3 MB, free: 8.23 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007289/0.0007288, allocations: 97.95 kB / 296.4 MB, free: 7.004 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002224/0.0002225, allocations: 4 kB / 356.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1872/0.1875, allocations: 51.29 MB / 407.5 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.004184/0.1917, allocations: 5.29 MB / 412.8 MB, free: 22.54 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002515/0.1943, allocations: 2.132 MB / 414.9 MB, free: 20.41 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003587/0.1946, allocations: 15.94 kB / 414.9 MB, free: 20.39 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009156/0.1956, allocations: 0.5683 MB / 415.5 MB, free: 19.82 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Electrical/Batteries/BatteryStacks/CellRCStack.mo:14:26-14:33:writable] Warning: 'each' used when modifying non-array element v. Notification: Performance of NFTyping.typeBindings: time 0.0005367/0.1961, allocations: 378.2 kB / 415.9 MB, free: 19.45 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006162/0.1967, allocations: 270.8 kB / 416.1 MB, free: 19.19 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007795/0.1975, allocations: 1.11 MB / 417.2 MB, free: 18.08 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004056/0.1979, allocations: 359.3 kB / 417.6 MB, free: 17.71 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002853/0.1982, allocations: 386.5 kB / 418 MB, free: 17.34 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003446/0.1986, allocations: 470.1 kB / 418.4 MB, free: 16.88 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.606e-05/0.1987, allocations: 48 kB / 418.5 MB, free: 16.83 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002054/0.1989, allocations: 95.98 kB / 418.6 MB, free: 16.73 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002666/0.1992, allocations: 0.5921 MB / 419.2 MB, free: 16.14 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001653/0.1993, allocations: 340.6 kB / 419.5 MB, free: 15.8 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001078/0.2004, allocations: 2.135 MB / 421.6 MB, free: 13.66 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.972e-06/0.2004, allocations: 0 / 421.6 MB, free: 13.66 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2004, allocations: 3.938 kB / 421.6 MB, free: 13.66 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.217e-05/0.2005, allocations: 0 / 421.6 MB, free: 13.66 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.002593/0.2031, allocations: 2.069 MB / 423.7 MB, free: 11.52 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.278e-05/0.2031, allocations: 8.031 kB / 423.7 MB, free: 11.52 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002695/0.2034, allocations: 217.4 kB / 423.9 MB, free: 11.3 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001964/0.2054, allocations: 1.571 MB / 425.5 MB, free: 9.66 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000225/0.2056, allocations: 140.7 kB / 425.6 MB, free: 9.512 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.672e-05/0.2057, allocations: 60 kB / 425.7 MB, free: 9.453 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001182/0.2069, allocations: 0.8258 MB / 426.5 MB, free: 8.574 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.546e-05/0.2069, allocations: 4 kB / 426.5 MB, free: 8.57 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.901e-05/0.207, allocations: 32 kB / 426.6 MB, free: 8.539 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.073e-05/0.207, allocations: 12 kB / 426.6 MB, free: 8.527 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008586/0.2078, allocations: 0.5517 MB / 427.1 MB, free: 7.977 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00441/0.2123, allocations: 4.059 MB / 431.2 MB, free: 3.793 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001174/0.2135, allocations: 0.5774 MB / 431.8 MB, free: 3.207 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006242/0.2141, allocations: 370.9 kB / 432.1 MB, free: 2.844 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.38e-05/0.2141, allocations: 4.281 kB / 432.1 MB, free: 2.84 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.595e-05/0.2142, allocations: 46.83 kB / 432.2 MB, free: 2.785 MB / 298.7 MB Notification: Performance of pre-optimization done (n=33): time 2.304e-06/0.2142, allocations: 0 / 432.2 MB, free: 2.785 MB / 298.7 MB Notification: Performance of matching and sorting (n=33): time 0.002001/0.2162, allocations: 0.9895 MB / 433.2 MB, free: 1.77 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.756e-05/0.2163, allocations: 269 kB / 433.4 MB, free: 1.445 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003404/0.2197, allocations: 3.156 MB / 436.6 MB, free: 14.25 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.868e-05/0.2197, allocations: 33.7 kB / 436.6 MB, free: 14.21 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007246/0.2205, allocations: 0.8608 MB / 437.5 MB, free: 13.35 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001069/0.2206, allocations: 122.2 kB / 437.6 MB, free: 13.23 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.356e-05/0.2206, allocations: 12 kB / 437.6 MB, free: 13.21 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001067/0.2207, allocations: 325.9 kB / 437.9 MB, free: 12.89 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004699/0.2212, allocations: 221 kB / 438.1 MB, free: 12.67 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005533/0.2218, allocations: 406 kB / 438.5 MB, free: 12.21 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005126/0.2223, allocations: 267.4 kB / 438.8 MB, free: 11.95 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.2223, allocations: 0 / 438.8 MB, free: 11.95 MB / 314.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001673/0.224, allocations: 0.8395 MB / 439.6 MB, free: 11.09 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.025e-05/0.224, allocations: 8 kB / 439.6 MB, free: 11.09 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.224, allocations: 0 / 439.6 MB, free: 11.09 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003195/0.2243, allocations: 77 kB / 439.7 MB, free: 11.01 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004519/0.2248, allocations: 119.8 kB / 439.8 MB, free: 10.89 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0016/0.2264, allocations: 1.654 MB / 441.5 MB, free: 9.105 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000585/0.227, allocations: 87.5 kB / 441.6 MB, free: 9.02 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.85e-05/0.2271, allocations: 20.02 kB / 441.6 MB, free: 9 MB / 314.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 (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 5} Notification: Performance of prepare postOptimizeDAE: time 0.0008466/0.2279, allocations: 0.6537 MB / 442.2 MB, free: 8.336 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002341/0.2282, allocations: 189.7 kB / 442.4 MB, free: 8.148 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002717/0.2284, allocations: 214.6 kB / 442.6 MB, free: 7.934 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.818e-06/0.2284, allocations: 4 kB / 442.6 MB, free: 7.93 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/0.2285, allocations: 0 / 442.6 MB, free: 7.93 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.2285, allocations: 0 / 442.6 MB, free: 7.93 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003212/0.2317, allocations: 2.202 MB / 444.8 MB, free: 5.656 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.539e-06/0.2317, allocations: 4 kB / 444.8 MB, free: 5.652 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003896/0.2321, allocations: 83.88 kB / 444.9 MB, free: 5.57 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002051/0.2323, allocations: 60.89 kB / 445 MB, free: 5.508 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.664e-05/0.2324, allocations: 19.94 kB / 445 MB, free: 5.488 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001412/0.2338, allocations: 1.592 MB / 446.6 MB, free: 3.766 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.2338, allocations: 0 / 446.6 MB, free: 3.766 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001811/0.2356, allocations: 1.021 MB / 447.6 MB, free: 2.715 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006297/0.2363, allocations: 446.6 kB / 448.1 MB, free: 2.258 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001687/0.2364, allocations: 19.98 kB / 448.1 MB, free: 2.238 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005267/0.237, allocations: 67.94 kB / 448.1 MB, free: 2.172 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001021/0.2371, allocations: 51.77 kB / 448.2 MB, free: 2.121 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.452e-05/0.2371, allocations: 8 kB / 448.2 MB, free: 2.113 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002787/0.2399, allocations: 2.255 MB / 450.5 MB, free: 15.84 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2399, allocations: 0 / 450.5 MB, free: 15.84 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008027/0.2407, allocations: 259.4 kB / 450.7 MB, free: 15.59 MB / 330.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 (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 Backend phase and start with SimCode phase: time 0.0008878/0.2416, allocations: 463 kB / 451.2 MB, free: 15.3 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001247/0.2429, allocations: 0.6198 MB / 451.8 MB, free: 14.66 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.2429, allocations: 7.938 kB / 451.8 MB, free: 14.66 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006551/0.2436, allocations: 379.1 kB / 452.2 MB, free: 14.27 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001112/0.2447, allocations: 280.1 kB / 452.4 MB, free: 14 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006099/0.2508, allocations: 4.138 MB / 456.6 MB, free: 9.812 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001061/0.2519, allocations: 1.481 MB / 458 MB, free: 8.301 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003002/0.2522, allocations: 95.42 kB / 458.1 MB, free: 8.207 MB / 330.7 MB Notification: Performance of SimCode: time 5.41e-07/0.2522, allocations: 4 kB / 458.1 MB, free: 8.203 MB / 330.7 MB Notification: Performance of Templates: time 0.03644/0.2886, allocations: 29.26 MB / 487.4 MB, free: 10.97 MB / 362.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_CellRC --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches