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.CCCVcharging.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.CCCVcharging,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|battery.capacitor.1..v|battery.capacitor.2..v|battery.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging") translateModel(Modelica.Electrical.Batteries.Examples.CCCVcharging,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|battery.capacitor.1..v|battery.capacitor.2..v|battery.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001142/0.001142, allocations: 186.6 kB / 16.71 MB, free: 4.961 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.313/1.313, allocations: 225.7 MB / 243.2 MB, free: 8.461 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.0007452/0.0007453, allocations: 103.9 kB / 294.4 MB, free: 9.512 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002741/0.0002741, allocations: 15.92 kB / 354.2 MB, free: 13.64 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2437/0.244, allocations: 50.41 MB / 404.6 MB, free: 31.33 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.00312/0.2471, allocations: 3.441 MB / 408 MB, free: 27.88 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001967/0.2491, allocations: 1.855 MB / 409.9 MB, free: 26.01 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002335/0.2494, allocations: 8 kB / 409.9 MB, free: 26 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009846/0.2504, allocations: 0.5673 MB / 410.4 MB, free: 25.43 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003891/0.2508, allocations: 317.9 kB / 410.8 MB, free: 25.12 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004761/0.2513, allocations: 259.7 kB / 411 MB, free: 24.87 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006584/0.2519, allocations: 0.9233 MB / 411.9 MB, free: 23.95 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000325/0.2523, allocations: 308.1 kB / 412.2 MB, free: 23.64 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002124/0.2525, allocations: 310.7 kB / 412.5 MB, free: 23.33 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003205/0.2528, allocations: 446.3 kB / 413 MB, free: 22.89 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.661e-05/0.2529, allocations: 36 kB / 413 MB, free: 22.86 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001673/0.2531, allocations: 79.98 kB / 413.1 MB, free: 22.78 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002147/0.2533, allocations: 426.7 kB / 413.5 MB, free: 22.36 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000341/0.2536, allocations: 0.5877 MB / 414.1 MB, free: 21.77 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008606/0.2545, allocations: 1.654 MB / 415.7 MB, free: 20.11 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.2545, allocations: 0 / 415.7 MB, free: 20.11 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2545, allocations: 0 / 415.7 MB, free: 20.11 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.127e-05/0.2545, allocations: 0 / 415.7 MB, free: 20.11 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.00193/0.2565, allocations: 1.597 MB / 417.3 MB, free: 18.45 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.145e-05/0.2565, allocations: 8.031 kB / 417.3 MB, free: 18.45 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001702/0.2567, allocations: 155.1 kB / 417.5 MB, free: 18.29 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001292/0.258, allocations: 1.165 MB / 418.7 MB, free: 17.08 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002914/0.2583, allocations: 144.9 kB / 418.8 MB, free: 16.93 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.604e-05/0.2584, allocations: 47.94 kB / 418.9 MB, free: 16.88 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009528/0.2593, allocations: 0.6791 MB / 419.5 MB, free: 16.16 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.67e-05/0.2594, allocations: 3.938 kB / 419.5 MB, free: 16.15 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.681e-05/0.2594, allocations: 24 kB / 419.6 MB, free: 16.13 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.728e-06/0.2594, allocations: 16 kB / 419.6 MB, free: 16.11 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006858/0.2601, allocations: 451.7 kB / 420 MB, free: 15.67 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003261/0.2634, allocations: 2.918 MB / 422.9 MB, free: 12.64 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009075/0.2643, allocations: 466.5 kB / 423.4 MB, free: 12.18 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005792/0.2649, allocations: 350.3 kB / 423.7 MB, free: 11.84 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.817e-05/0.265, allocations: 8 kB / 423.7 MB, free: 11.83 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.091e-05/0.265, allocations: 42.56 kB / 423.8 MB, free: 11.78 MB / 298.7 MB Notification: Performance of pre-optimization done (n=30): time 2.625e-06/0.265, allocations: 0 / 423.8 MB, free: 11.78 MB / 298.7 MB Notification: Performance of matching and sorting (n=30): time 0.001673/0.2667, allocations: 0.8361 MB / 424.6 MB, free: 10.91 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.919e-05/0.2668, allocations: 265 kB / 424.9 MB, free: 10.59 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002038/0.2688, allocations: 2.218 MB / 427.1 MB, free: 8.363 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.719e-05/0.2689, allocations: 29.7 kB / 427.1 MB, free: 8.328 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003957/0.2693, allocations: 0.635 MB / 427.8 MB, free: 7.684 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.88e-05/0.2694, allocations: 110.5 kB / 427.9 MB, free: 7.574 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.799e-05/0.2694, allocations: 8 kB / 427.9 MB, free: 7.566 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.908e-05/0.2694, allocations: 325.9 kB / 428.2 MB, free: 7.242 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000342/0.2698, allocations: 176.6 kB / 428.4 MB, free: 7.066 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003757/0.2702, allocations: 316.5 kB / 428.7 MB, free: 6.703 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006448/0.2708, allocations: 432.7 kB / 429.1 MB, free: 6.25 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.2708, allocations: 3.938 kB / 429.1 MB, free: 6.246 MB / 298.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000961/0.2718, allocations: 0.629 MB / 429.7 MB, free: 5.605 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.853e-05/0.2718, allocations: 8 kB / 429.7 MB, free: 5.598 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.2719, allocations: 0 / 429.7 MB, free: 5.598 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000277/0.2721, allocations: 76.88 kB / 429.8 MB, free: 5.52 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003716/0.2725, allocations: 95.88 kB / 429.9 MB, free: 5.426 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001186/0.2737, allocations: 1.615 MB / 431.5 MB, free: 3.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004179/0.2741, allocations: 71.59 kB / 431.6 MB, free: 3.609 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.463e-05/0.2742, allocations: 12 kB / 431.6 MB, free: 3.598 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 3 (cccvCharger.CV,energy.local_reset,battery.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 40 * 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,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0004525/0.2746, allocations: 485.5 kB / 432.1 MB, free: 3.113 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001215/0.2748, allocations: 134.3 kB / 432.2 MB, free: 2.98 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001483/0.2749, allocations: 165.5 kB / 432.4 MB, free: 2.812 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.846e-06/0.2749, allocations: 4 kB / 432.4 MB, free: 2.809 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.585e-06/0.2749, allocations: 0 / 432.4 MB, free: 2.809 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.519e-06/0.2749, allocations: 3.984 kB / 432.4 MB, free: 2.805 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002132/0.2771, allocations: 1.722 MB / 434.1 MB, free: 1.016 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.2771, allocations: 4 kB / 434.1 MB, free: 1.012 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003253/0.2774, allocations: 76 kB / 434.2 MB, free: 0.9375 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001594/0.2776, allocations: 60.77 kB / 434.2 MB, free: 0.875 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.425e-05/0.2776, allocations: 11.98 kB / 434.2 MB, free: 0.8633 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001188/0.2788, allocations: 1.568 MB / 435.8 MB, free: 15.16 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.2788, allocations: 0 / 435.8 MB, free: 15.16 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001566/0.2804, allocations: 0.8581 MB / 436.7 MB, free: 14.28 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004744/0.2809, allocations: 335.3 kB / 437 MB, free: 13.93 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000107/0.281, allocations: 8 kB / 437 MB, free: 13.92 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004673/0.2815, allocations: 59.95 kB / 437.1 MB, free: 13.86 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.129e-05/0.2816, allocations: 31.95 kB / 437.1 MB, free: 13.83 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.324e-05/0.2816, allocations: 12.11 kB / 437.1 MB, free: 13.82 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001959/0.2836, allocations: 1.592 MB / 438.7 MB, free: 12.23 MB / 314.7 MB Notification: Performance of sort global known variables: time 2e-07/0.2836, allocations: 0 / 438.7 MB, free: 12.23 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006687/0.2843, allocations: 203.5 kB / 438.9 MB, free: 12.03 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (battery.limIntegrator.y,battery.capacitor[1].v,battery.capacitor[2].v,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 (26): * Single equations (assignments): 25 * 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 Backend phase and start with SimCode phase: time 0.001057/0.2853, allocations: 0.5358 MB / 439.4 MB, free: 11.64 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001169/0.2865, allocations: 0.5378 MB / 440 MB, free: 11.09 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.2865, allocations: 0 / 440 MB, free: 11.09 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005754/0.2871, allocations: 333.5 kB / 440.3 MB, free: 10.76 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009956/0.2881, allocations: 197.1 kB / 440.5 MB, free: 10.56 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003996/0.2921, allocations: 3.097 MB / 443.6 MB, free: 7.434 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007702/0.2929, allocations: 1.257 MB / 444.8 MB, free: 6.152 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0004803/0.2934, allocations: 211.8 kB / 445.1 MB, free: 5.941 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000172/0.2936, allocations: 67.44 kB / 445.1 MB, free: 5.875 MB / 314.7 MB Notification: Performance of SimCode: time 7.31e-07/0.2936, allocations: 0 / 445.1 MB, free: 5.875 MB / 314.7 MB Notification: Performance of Templates: time 0.02393/0.3175, allocations: 13.12 MB / 458.2 MB, free: 8.797 MB / 330.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCVcharging/CCCVcharging.csv","../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches