Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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_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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00138/0.00138, allocations: 200.8 kB / 17.43 MB, free: 4.273 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.388/1.388, allocations: 229.5 MB / 247.7 MB, free: 6.332 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008702/0.0008703, allocations: 98.14 kB / 299.9 MB, free: 5.344 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003215/0.0003215, allocations: 4 kB / 360.6 MB, free: 8.484 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2117/0.212, allocations: 51.42 MB / 412.1 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.004214/0.2163, allocations: 4.823 MB / 416.9 MB, free: 21.07 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002238/0.2186, allocations: 2.149 MB / 419 MB, free: 18.83 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002711/0.2188, allocations: 15.94 kB / 419 MB, free: 18.82 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007172/0.2196, allocations: 0.5022 MB / 419.5 MB, free: 18.31 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004445/0.22, allocations: 342.5 kB / 419.9 MB, free: 17.98 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005547/0.2206, allocations: 339.5 kB / 420.2 MB, free: 17.64 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005511/0.2212, allocations: 0.8494 MB / 421.1 MB, free: 16.79 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003449/0.2215, allocations: 287.7 kB / 421.3 MB, free: 16.5 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002173/0.2217, allocations: 298.8 kB / 421.6 MB, free: 16.21 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003123/0.2221, allocations: 386.4 kB / 422 MB, free: 15.83 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.996e-05/0.2221, allocations: 32 kB / 422 MB, free: 15.8 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001386/0.2223, allocations: 67.98 kB / 422.1 MB, free: 15.73 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000253/0.2225, allocations: 0.5375 MB / 422.6 MB, free: 15.2 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003622/0.2229, allocations: 0.6885 MB / 423.3 MB, free: 14.5 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009886/0.2239, allocations: 2.004 MB / 425.3 MB, free: 12.48 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.2239, allocations: 0 / 425.3 MB, free: 12.48 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.2239, allocations: 0 / 425.3 MB, free: 12.48 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.993e-05/0.2239, allocations: 4 kB / 425.3 MB, free: 12.48 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.002019/0.226, allocations: 1.808 MB / 427.1 MB, free: 10.61 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.062e-05/0.226, allocations: 8.031 kB / 427.2 MB, free: 10.61 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001776/0.2262, allocations: 186.6 kB / 427.3 MB, free: 10.42 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001538/0.2277, allocations: 1.494 MB / 428.8 MB, free: 8.883 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001938/0.2279, allocations: 102.6 kB / 428.9 MB, free: 8.777 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.991e-05/0.228, allocations: 44 kB / 429 MB, free: 8.734 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008535/0.2289, allocations: 0.5893 MB / 429.6 MB, free: 8.098 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.416e-05/0.2289, allocations: 4 kB / 429.6 MB, free: 8.094 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.332e-05/0.2289, allocations: 27.94 kB / 429.6 MB, free: 8.066 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.106e-05/0.229, allocations: 15.98 kB / 429.6 MB, free: 8.051 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006206/0.2296, allocations: 347.8 kB / 429.9 MB, free: 7.711 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003674/0.2333, allocations: 3.289 MB / 433.2 MB, free: 4.297 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001059/0.2344, allocations: 432.1 kB / 433.7 MB, free: 3.867 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004191/0.2348, allocations: 192.8 kB / 433.8 MB, free: 3.676 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.07e-05/0.2348, allocations: 4 kB / 433.9 MB, free: 3.672 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.126e-05/0.2349, allocations: 34.56 kB / 433.9 MB, free: 3.629 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 2.955e-06/0.2349, allocations: 0 / 433.9 MB, free: 3.629 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.001615/0.2365, allocations: 0.7503 MB / 434.6 MB, free: 2.852 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.757e-05/0.2365, allocations: 217.6 kB / 434.8 MB, free: 2.59 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002903/0.2395, allocations: 2.885 MB / 437.7 MB, free: 15.66 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.607e-05/0.2395, allocations: 29.7 kB / 437.8 MB, free: 15.62 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006655/0.2402, allocations: 0.7854 MB / 438.5 MB, free: 14.83 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.452e-05/0.2403, allocations: 71 kB / 438.6 MB, free: 14.76 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.559e-05/0.2403, allocations: 8 kB / 438.6 MB, free: 14.75 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.2404, allocations: 314 kB / 438.9 MB, free: 14.44 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003473/0.2407, allocations: 136.6 kB / 439.1 MB, free: 14.31 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004429/0.2412, allocations: 292.9 kB / 439.3 MB, free: 13.95 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000737/0.2419, allocations: 384.9 kB / 439.7 MB, free: 13.53 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.135e-06/0.242, allocations: 0 / 439.7 MB, free: 13.53 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001329/0.2433, allocations: 0.6405 MB / 440.4 MB, free: 12.88 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.082e-05/0.2433, allocations: 4 kB / 440.4 MB, free: 12.87 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.2433, allocations: 7.938 kB / 440.4 MB, free: 12.86 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002561/0.2436, allocations: 56.83 kB / 440.4 MB, free: 12.8 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002962/0.2439, allocations: 88.02 kB / 440.5 MB, free: 12.72 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001511/0.2454, allocations: 1.576 MB / 442.1 MB, free: 11.01 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004603/0.2459, allocations: 67.56 kB / 442.2 MB, free: 10.95 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.721e-05/0.246, allocations: 19.98 kB / 442.2 MB, free: 10.93 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 (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.0006862/0.2466, allocations: 0.58 MB / 442.8 MB, free: 10.34 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000179/0.2468, allocations: 161.9 kB / 442.9 MB, free: 10.18 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00118/0.248, allocations: 0.5415 MB / 443.5 MB, free: 9.621 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.351e-06/0.248, allocations: 4 kB / 443.5 MB, free: 9.617 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.342e-06/0.248, allocations: 4 kB / 443.5 MB, free: 9.613 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.2481, allocations: 3.938 kB / 443.5 MB, free: 9.609 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002559/0.2506, allocations: 1.721 MB / 445.2 MB, free: 7.816 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.2506, allocations: 4.031 kB / 445.2 MB, free: 7.812 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002295/0.2509, allocations: 43.97 kB / 445.2 MB, free: 7.77 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001583/0.251, allocations: 60.75 kB / 445.3 MB, free: 7.707 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.881e-05/0.2511, allocations: 4 kB / 445.3 MB, free: 7.703 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001278/0.2524, allocations: 1.529 MB / 446.8 MB, free: 6.039 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.2524, allocations: 0 / 446.8 MB, free: 6.039 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001387/0.2538, allocations: 0.7533 MB / 447.6 MB, free: 5.262 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005482/0.2543, allocations: 383 kB / 448 MB, free: 4.867 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001176/0.2544, allocations: 7.938 kB / 448 MB, free: 4.859 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004243/0.2549, allocations: 63.95 kB / 448 MB, free: 4.797 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.25e-05/0.255, allocations: 27.95 kB / 448.1 MB, free: 4.77 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.745e-05/0.255, allocations: 8 kB / 448.1 MB, free: 4.762 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002546/0.2576, allocations: 2.055 MB / 450.1 MB, free: 2.684 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2576, allocations: 0 / 450.1 MB, free: 2.684 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007271/0.2583, allocations: 207.5 kB / 450.3 MB, free: 2.48 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 (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.0007993/0.2591, allocations: 404.6 kB / 450.7 MB, free: 2.184 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001026/0.2602, allocations: 462.8 kB / 451.2 MB, free: 1.719 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.86e-06/0.2602, allocations: 0 / 451.2 MB, free: 1.719 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005183/0.2607, allocations: 294.9 kB / 451.5 MB, free: 1.418 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001092/0.2618, allocations: 221.2 kB / 451.7 MB, free: 1.199 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005693/0.2675, allocations: 3.549 MB / 455.2 MB, free: 13.62 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001193/0.2687, allocations: 1.355 MB / 456.6 MB, free: 12.23 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0006177/0.2694, allocations: 241.6 kB / 456.8 MB, free: 11.99 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002019/0.2696, allocations: 75.44 kB / 456.9 MB, free: 11.92 MB / 330.7 MB Notification: Performance of SimCode: time 9.52e-07/0.2696, allocations: 4 kB / 456.9 MB, free: 11.91 MB / 330.7 MB Notification: Performance of Templates: time 0.02631/0.2959, allocations: 14.44 MB / 471.3 MB, free: 13.52 MB / 346.7 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/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_Modelica.Electrical.Batteries.Examples.CCCV_Cell.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches