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.BatteryDischargeCharge.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.BatteryDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=72000,variableFilter="time|battery1.limIntegrator.y|battery2.capacitor.1..v|battery2.capacitor.2..v|battery2.limIntegrator.y|energy1.y|energy2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge") translateModel(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=72000,variableFilter="time|battery1.limIntegrator.y|battery2.capacitor.1..v|battery2.capacitor.2..v|battery2.limIntegrator.y|energy1.y|energy2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001355/0.001354, allocations: 183 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.297/1.297, allocations: 225.7 MB / 243.2 MB, free: 8.5 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.0009972/0.0009972, allocations: 94.84 kB / 294.4 MB, free: 9.512 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002762/0.0002763, allocations: 8 kB / 354.2 MB, free: 13.65 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2435/0.2438, allocations: 50.42 MB / 404.6 MB, free: 31.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.004439/0.2483, allocations: 5.043 MB / 409.6 MB, free: 26.27 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00309/0.2514, allocations: 2.658 MB / 412.3 MB, free: 23.57 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004072/0.2518, allocations: 19.94 kB / 412.3 MB, free: 23.55 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00116/0.253, allocations: 0.716 MB / 413 MB, free: 22.83 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006579/0.2537, allocations: 461.8 kB / 413.5 MB, free: 22.38 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008239/0.2545, allocations: 471.3 kB / 413.9 MB, free: 21.91 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001034/0.2556, allocations: 1.512 MB / 415.4 MB, free: 20.4 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006213/0.2562, allocations: 0.5162 MB / 416 MB, free: 19.86 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004229/0.2566, allocations: 0.494 MB / 416.4 MB, free: 19.36 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00052/0.2572, allocations: 0.6573 MB / 417.1 MB, free: 18.7 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001037/0.2573, allocations: 60 kB / 417.2 MB, free: 18.64 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000285/0.2576, allocations: 127.9 kB / 417.3 MB, free: 18.52 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003445/0.2579, allocations: 0.5451 MB / 417.8 MB, free: 17.97 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005284/0.2584, allocations: 0.8479 MB / 418.7 MB, free: 17.11 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001302/0.2598, allocations: 2.312 MB / 421 MB, free: 14.79 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.2598, allocations: 0 / 421 MB, free: 14.79 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.2598, allocations: 0 / 421 MB, free: 14.79 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.888e-05/0.2598, allocations: 0 / 421 MB, free: 14.79 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: 215 * Number of variables: 215 Notification: Performance of Generate backend data structure: time 0.003277/0.2631, allocations: 2.312 MB / 423.3 MB, free: 12.42 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.6e-05/0.2631, allocations: 11.97 kB / 423.3 MB, free: 12.41 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00023/0.2634, allocations: 218.3 kB / 423.5 MB, free: 12.19 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001632/0.265, allocations: 1.523 MB / 425.1 MB, free: 10.62 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004551/0.2655, allocations: 188.2 kB / 425.2 MB, free: 10.43 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001028/0.2656, allocations: 91.84 kB / 425.3 MB, free: 10.34 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001546/0.2671, allocations: 1.127 MB / 426.5 MB, free: 9.141 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.92e-05/0.2672, allocations: 8 kB / 426.5 MB, free: 9.133 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.475e-05/0.2672, allocations: 36 kB / 426.5 MB, free: 9.098 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.43e-05/0.2673, allocations: 24 kB / 426.5 MB, free: 9.074 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001184/0.2685, allocations: 0.7377 MB / 427.3 MB, free: 8.336 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004997/0.2735, allocations: 4.704 MB / 432 MB, free: 3.461 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001188/0.2747, allocations: 1.005 MB / 433 MB, free: 2.352 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000697/0.2754, allocations: 417.1 kB / 433.4 MB, free: 1.938 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.049e-05/0.2754, allocations: 15.91 kB / 433.4 MB, free: 1.922 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.926e-05/0.2755, allocations: 50.56 kB / 433.4 MB, free: 1.863 MB / 298.7 MB Notification: Performance of pre-optimization done (n=44): time 2.424e-06/0.2755, allocations: 0 / 433.4 MB, free: 1.863 MB / 298.7 MB Notification: Performance of matching and sorting (n=44): time 0.00175/0.2772, allocations: 0.898 MB / 434.3 MB, free: 0.957 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.782e-05/0.2773, allocations: 427.2 kB / 434.8 MB, free: 452 kB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003302/0.2806, allocations: 2.719 MB / 437.5 MB, free: 13.68 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.284e-05/0.2807, allocations: 41.7 kB / 437.5 MB, free: 13.63 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007264/0.2814, allocations: 0.8784 MB / 438.4 MB, free: 12.75 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001358/0.2816, allocations: 153.8 kB / 438.5 MB, free: 12.59 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.12e-05/0.2816, allocations: 12 kB / 438.6 MB, free: 12.58 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001228/0.2818, allocations: 330 kB / 438.9 MB, free: 12.25 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000617/0.2824, allocations: 281.1 kB / 439.2 MB, free: 11.98 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008669/0.2833, allocations: 0.5675 MB / 439.7 MB, free: 11.29 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001248/0.2845, allocations: 0.6601 MB / 440.4 MB, free: 10.55 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.57e-06/0.2845, allocations: 4 kB / 440.4 MB, free: 10.55 MB / 314.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001822/0.2864, allocations: 0.9078 MB / 441.3 MB, free: 9.629 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.227e-05/0.2864, allocations: 8 kB / 441.3 MB, free: 9.621 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.153e-05/0.2864, allocations: 4 kB / 441.3 MB, free: 9.617 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.182e-05/0.2864, allocations: 8 kB / 441.3 MB, free: 9.609 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006182/0.2871, allocations: 180 kB / 441.5 MB, free: 9.434 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.251e-05/0.2871, allocations: 19.88 kB / 441.5 MB, free: 9.414 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001136/0.2882, allocations: 211.1 kB / 441.7 MB, free: 9.207 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.063e-05/0.2883, allocations: 28 kB / 441.7 MB, free: 9.18 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 6 (pulseSeries.on1,pulseSeries.on2,energy2.local_reset,battery2.limIntegrator.local_reset,energy1.local_reset,battery1.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009316/0.2893, allocations: 0.5522 MB / 442.3 MB, free: 8.617 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002085/0.2895, allocations: 181.8 kB / 442.5 MB, free: 8.438 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001486/0.291, allocations: 0.7546 MB / 443.2 MB, free: 7.672 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.492e-06/0.291, allocations: 4 kB / 443.2 MB, free: 7.668 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.291, allocations: 3.938 kB / 443.2 MB, free: 7.664 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.552e-06/0.291, allocations: 3.984 kB / 443.2 MB, free: 7.66 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003253/0.2943, allocations: 2.187 MB / 445.4 MB, free: 5.398 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.2943, allocations: 4 kB / 445.4 MB, free: 5.395 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005353/0.2948, allocations: 119.8 kB / 445.5 MB, free: 5.277 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.685e-06/0.2948, allocations: 7.938 kB / 445.6 MB, free: 5.27 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.879e-05/0.2949, allocations: 16.08 kB / 445.6 MB, free: 5.254 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.088e-06/0.2949, allocations: 0 / 445.6 MB, free: 5.254 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.2949, allocations: 4 kB / 445.6 MB, free: 5.25 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001988/0.2969, allocations: 1.135 MB / 446.7 MB, free: 4.086 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006119/0.2975, allocations: 414.7 kB / 447.1 MB, free: 3.66 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001662/0.2977, allocations: 16.12 kB / 447.1 MB, free: 3.645 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009875/0.2987, allocations: 199.8 kB / 447.3 MB, free: 3.449 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002917/0.299, allocations: 155.7 kB / 447.5 MB, free: 3.297 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.136e-05/0.299, allocations: 23.94 kB / 447.5 MB, free: 3.273 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002384/0.3014, allocations: 1.932 MB / 449.4 MB, free: 1.32 MB / 314.7 MB Notification: Performance of sort global known variables: time 2e-07/0.3014, allocations: 0 / 449.4 MB, free: 1.32 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007528/0.3022, allocations: 315.2 kB / 449.7 MB, free: 1.012 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (battery1.limIntegrator.y,energy1.y,battery2.limIntegrator.y,battery2.capacitor[1].v,battery2.capacitor[2].v,energy2.y) * Number of discrete variables: 2 (pulseSeries.on1,pulseSeries.on2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001008/0.3032, allocations: 0.5431 MB / 450.3 MB, free: 0.6172 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001351/0.3046, allocations: 0.6429 MB / 450.9 MB, free: 15.97 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.249e-06/0.3046, allocations: 0 / 450.9 MB, free: 15.97 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007212/0.3053, allocations: 384.7 kB / 451.3 MB, free: 15.6 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001362/0.3067, allocations: 300.5 kB / 451.6 MB, free: 15.3 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005528/0.3122, allocations: 4.181 MB / 455.8 MB, free: 11.08 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001137/0.3134, allocations: 1.433 MB / 457.2 MB, free: 9.617 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0007812/0.3142, allocations: 290.8 kB / 457.5 MB, free: 9.328 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002962/0.3145, allocations: 111.4 kB / 457.6 MB, free: 9.219 MB / 330.7 MB Notification: Performance of SimCode: time 6.11e-07/0.3145, allocations: 0 / 457.6 MB, free: 9.219 MB / 330.7 MB Notification: Performance of Templates: time 0.03197/0.3465, allocations: 19.15 MB / 476.8 MB, free: 6.156 MB / 346.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/BatteryDischargeCharge/BatteryDischargeCharge.csv","../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches