Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001444/0.001444, allocations: 179.6 kB / 16.71 MB, free: 5.09 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.341/1.341, allocations: 225.7 MB / 243.2 MB, free: 8.449 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007962/0.0007962, allocations: 94.52 kB / 294.4 MB, free: 9.48 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002805/0.0002805, allocations: 4 kB / 354.2 MB, free: 13.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2341/0.2344, allocations: 50.41 MB / 404.6 MB, free: 31.3 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.004135/0.2386, allocations: 4.796 MB / 409.4 MB, free: 26.49 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001941/0.2405, allocations: 1.692 MB / 411.1 MB, free: 24.79 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002551/0.2408, allocations: 15.94 kB / 411.1 MB, free: 24.77 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007588/0.2416, allocations: 0.4897 MB / 411.6 MB, free: 24.28 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003975/0.242, allocations: 313.3 kB / 411.9 MB, free: 23.98 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005441/0.2425, allocations: 335.5 kB / 412.2 MB, free: 23.65 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005377/0.2431, allocations: 0.8339 MB / 413 MB, free: 22.81 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000362/0.2435, allocations: 299.6 kB / 413.3 MB, free: 22.51 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002293/0.2437, allocations: 282.9 kB / 413.6 MB, free: 22.23 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002875/0.244, allocations: 390.4 kB / 414 MB, free: 21.85 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.973e-05/0.2441, allocations: 32 kB / 414 MB, free: 21.82 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001398/0.2442, allocations: 63.94 kB / 414.1 MB, free: 21.76 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002765/0.2445, allocations: 0.5297 MB / 414.6 MB, free: 21.23 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003717/0.2449, allocations: 0.6924 MB / 415.3 MB, free: 20.52 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001019/0.2459, allocations: 1.993 MB / 417.3 MB, free: 18.52 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.67e-06/0.2459, allocations: 3.938 kB / 417.3 MB, free: 18.52 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2459, allocations: 4 kB / 417.3 MB, free: 18.52 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.491e-05/0.2459, allocations: 0 / 417.3 MB, free: 18.52 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.00205/0.248, allocations: 1.804 MB / 419.1 MB, free: 16.65 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.753e-05/0.248, allocations: 8.031 kB / 419.1 MB, free: 16.64 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001886/0.2482, allocations: 186.6 kB / 419.3 MB, free: 16.46 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001535/0.2498, allocations: 1.486 MB / 420.8 MB, free: 14.93 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001851/0.25, allocations: 102.7 kB / 420.9 MB, free: 14.82 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.679e-05/0.25, allocations: 48 kB / 420.9 MB, free: 14.78 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008594/0.2509, allocations: 0.5893 MB / 421.5 MB, free: 14.14 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.291e-05/0.2509, allocations: 4 kB / 421.5 MB, free: 14.14 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.246e-05/0.251, allocations: 24 kB / 421.5 MB, free: 14.12 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.628e-06/0.251, allocations: 12 kB / 421.6 MB, free: 14.11 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005894/0.2516, allocations: 359.7 kB / 421.9 MB, free: 13.75 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003389/0.255, allocations: 3.285 MB / 425.2 MB, free: 10.34 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009654/0.256, allocations: 418.5 kB / 425.6 MB, free: 9.926 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003986/0.2564, allocations: 200.6 kB / 425.8 MB, free: 9.727 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.879e-05/0.2564, allocations: 4 kB / 425.8 MB, free: 9.723 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.579e-05/0.2565, allocations: 46.55 kB / 425.8 MB, free: 9.668 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.953e-06/0.2565, allocations: 0 / 425.8 MB, free: 9.668 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.001621/0.2581, allocations: 0.7475 MB / 426.6 MB, free: 8.895 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.334e-05/0.2582, allocations: 213.6 kB / 426.8 MB, free: 8.637 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002752/0.2609, allocations: 2.865 MB / 429.7 MB, free: 5.727 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.918e-05/0.261, allocations: 33.7 kB / 429.7 MB, free: 5.688 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005274/0.2615, allocations: 0.7814 MB / 430.5 MB, free: 4.898 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.463e-05/0.2616, allocations: 74.98 kB / 430.5 MB, free: 4.824 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.404e-05/0.2616, allocations: 8 kB / 430.6 MB, free: 4.816 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.986e-05/0.2617, allocations: 322 kB / 430.9 MB, free: 4.496 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002868/0.2619, allocations: 132.6 kB / 431 MB, free: 4.367 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003478/0.2623, allocations: 304.7 kB / 431.3 MB, free: 4 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005739/0.2629, allocations: 379.9 kB / 431.7 MB, free: 3.578 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.2629, allocations: 3.984 kB / 431.7 MB, free: 3.574 MB / 298.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001131/0.264, allocations: 0.6321 MB / 432.3 MB, free: 2.934 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.956e-05/0.2641, allocations: 4 kB / 432.3 MB, free: 2.93 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.147e-06/0.2641, allocations: 4 kB / 432.3 MB, free: 2.926 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002479/0.2643, allocations: 65.02 kB / 432.4 MB, free: 2.859 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002623/0.2646, allocations: 75.89 kB / 432.5 MB, free: 2.785 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001238/0.2659, allocations: 1.588 MB / 434 MB, free: 1.066 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004118/0.2663, allocations: 71.75 kB / 434.1 MB, free: 0.9961 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.099e-05/0.2663, allocations: 12 kB / 434.1 MB, free: 0.9844 MB / 298.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.0005486/0.2669, allocations: 0.5795 MB / 434.7 MB, free: 404 kB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001376/0.267, allocations: 165.8 kB / 434.9 MB, free: 236 kB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001072/0.2681, allocations: 0.5493 MB / 435.4 MB, free: 15.67 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.2681, allocations: 0 / 435.4 MB, free: 15.67 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.322e-06/0.2681, allocations: 0 / 435.4 MB, free: 15.67 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.2681, allocations: 3.938 kB / 435.4 MB, free: 15.66 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00255/0.2707, allocations: 1.719 MB / 437.1 MB, free: 13.88 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.656e-06/0.2707, allocations: 0 / 437.1 MB, free: 13.88 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002283/0.2709, allocations: 51.91 kB / 437.2 MB, free: 13.82 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001597/0.2711, allocations: 52.8 kB / 437.2 MB, free: 13.77 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.182e-05/0.2711, allocations: 11.98 kB / 437.2 MB, free: 13.76 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001321/0.2725, allocations: 1.533 MB / 438.8 MB, free: 12.09 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.2725, allocations: 0 / 438.8 MB, free: 12.09 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001438/0.2739, allocations: 0.75 MB / 439.5 MB, free: 11.31 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005224/0.2745, allocations: 383 kB / 439.9 MB, free: 10.92 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001174/0.2746, allocations: 8 kB / 439.9 MB, free: 10.91 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004238/0.275, allocations: 59.95 kB / 440 MB, free: 10.85 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.894e-05/0.2751, allocations: 31.95 kB / 440 MB, free: 10.82 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.632e-05/0.2751, allocations: 4 kB / 440 MB, free: 10.82 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002805/0.2779, allocations: 2.047 MB / 442.1 MB, free: 8.746 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.278, allocations: 0 / 442.1 MB, free: 8.746 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008934/0.2789, allocations: 203.5 kB / 442.3 MB, free: 8.547 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.0008942/0.2798, allocations: 407 kB / 442.7 MB, free: 8.254 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001054/0.2808, allocations: 477.8 kB / 443.1 MB, free: 7.781 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.828e-06/0.2809, allocations: 0 / 443.1 MB, free: 7.781 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005336/0.2814, allocations: 283.2 kB / 443.4 MB, free: 7.492 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001086/0.2825, allocations: 218.6 kB / 443.6 MB, free: 7.273 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005345/0.2878, allocations: 3.543 MB / 447.1 MB, free: 3.695 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001097/0.289, allocations: 1.355 MB / 448.5 MB, free: 2.312 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0005439/0.2895, allocations: 237.7 kB / 448.7 MB, free: 2.078 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001917/0.2897, allocations: 79.44 kB / 448.8 MB, free: 2 MB / 314.7 MB Notification: Performance of SimCode: time 2.185e-06/0.2897, allocations: 0 / 448.8 MB, free: 2 MB / 314.7 MB Notification: Performance of Templates: time 0.0266/0.3163, allocations: 14.4 MB / 463.2 MB, free: 3.625 MB / 330.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches