Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.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) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo) 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(PowerSysPro.Examples.UsingBatteries.ChargingBatteries,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries") translateModel(PowerSysPro.Examples.UsingBatteries.ChargingBatteries,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009576/0.0009578, allocations: 172.6 kB / 16.12 MB, free: 5.57 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.334/1.334, allocations: 225.7 MB / 242.6 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.0008895/0.0008896, allocations: 96.06 kB / 293.8 MB, free: 9.492 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.04709/0.04709, allocations: 8.102 MB / 353 MB, free: 14.2 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003084/0.0003082, allocations: 12.56 kB / 416.2 MB, free: 56.14 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08861/0.08893, allocations: 52.51 MB / 468.7 MB, free: 3.562 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.ChargingBatteries): time 0.003812/0.09278, allocations: 4.143 MB / 472.9 MB, free: 15.4 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.00298/0.0958, allocations: 2.359 MB / 475.2 MB, free: 12.84 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002958/0.09612, allocations: 12 kB / 475.2 MB, free: 12.82 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001115/0.09724, allocations: 0.7248 MB / 476 MB, free: 12.1 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008924/0.09814, allocations: 0.6035 MB / 476.6 MB, free: 11.49 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002379/0.1005, allocations: 2.197 MB / 478.8 MB, free: 9.016 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001312/0.1019, allocations: 1.199 MB / 480 MB, free: 7.812 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004947/0.1024, allocations: 353.9 kB / 480.3 MB, free: 7.449 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000432/0.1028, allocations: 486.3 kB / 480.8 MB, free: 6.973 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00088/0.1037, allocations: 0.849 MB / 481.6 MB, free: 6.121 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001106/0.1038, allocations: 52 kB / 481.7 MB, free: 6.07 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005624/0.1044, allocations: 275.8 kB / 482 MB, free: 5.801 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000783/0.1052, allocations: 0.9037 MB / 482.9 MB, free: 4.895 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001015/0.1062, allocations: 1.088 MB / 484 MB, free: 3.793 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002856/0.1091, allocations: 3.149 MB / 487.1 MB, free: 0.6328 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.1091, allocations: 0 / 487.1 MB, free: 0.6328 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1091, allocations: 0 / 487.1 MB, free: 0.6328 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.634e-05/0.1091, allocations: 0 / 487.1 MB, free: 0.6328 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 159 * Number of variables: 159 Notification: Performance of Generate backend data structure: time 0.2295/0.3386, allocations: 2.954 MB / 490.1 MB, free: 24.74 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.925e-05/0.3387, allocations: 9.812 kB / 490.1 MB, free: 24.74 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008399/0.3395, allocations: 292.5 kB / 490.4 MB, free: 24.59 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003746/0.3433, allocations: 2.187 MB / 492.5 MB, free: 23.62 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001649/0.3435, allocations: 227.2 kB / 492.8 MB, free: 23.41 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001176/0.3436, allocations: 61.69 kB / 492.8 MB, free: 23.39 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002068/0.3457, allocations: 1.017 MB / 493.8 MB, free: 22.86 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.792e-05/0.3457, allocations: 1.375 kB / 493.8 MB, free: 22.86 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.85e-05/0.3458, allocations: 33.38 kB / 493.9 MB, free: 22.84 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.858e-05/0.3458, allocations: 15.12 kB / 493.9 MB, free: 22.84 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001527/0.3474, allocations: 0.7167 MB / 494.6 MB, free: 22.58 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008563/0.3559, allocations: 4.908 MB / 499.5 MB, free: 20.18 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002362/0.3583, allocations: 1.417 MB / 0.4892 GB, free: 19.27 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009943/0.3594, allocations: 0.5431 MB / 0.4897 GB, free: 19.08 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001474/0.3595, allocations: 91.02 kB / 0.4898 GB, free: 18.99 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.786e-05/0.3596, allocations: 51.62 kB / 0.4899 GB, free: 18.94 MB / 314.7 MB Notification: Performance of pre-optimization done (n=64): time 2.635e-06/0.3596, allocations: 0 / 0.4899 GB, free: 18.94 MB / 314.7 MB Notification: Performance of matching and sorting (n=64): time 0.004764/0.3643, allocations: 1.722 MB / 0.4915 GB, free: 18.24 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001242/0.3645, allocations: 0.5933 MB / 0.4921 GB, free: 17.52 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006248/0.3707, allocations: 4.854 MB / 0.4969 GB, free: 15.53 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001241/0.3709, allocations: 40.92 kB / 0.4969 GB, free: 15.49 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000843/0.3717, allocations: 1.133 MB / 0.498 GB, free: 14.53 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001492/0.3719, allocations: 220.8 kB / 0.4982 GB, free: 14.34 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.206e-05/0.3719, allocations: 13.31 kB / 0.4982 GB, free: 14.33 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.333e-05/0.372, allocations: 331.3 kB / 0.4985 GB, free: 14.01 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007466/0.3727, allocations: 339.9 kB / 0.4989 GB, free: 13.85 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007868/0.3735, allocations: 0.5717 MB / 0.4994 GB, free: 13.41 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005092/0.3786, allocations: 1.767 MB / 0.5011 GB, free: 11.99 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.3787, allocations: 0 / 0.5011 GB, free: 11.99 MB / 314.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002951/0.3816, allocations: 1.283 MB / 0.5024 GB, free: 10.7 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.863e-05/0.3817, allocations: 4 kB / 0.5024 GB, free: 10.69 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.758e-06/0.3817, allocations: 4 kB / 0.5024 GB, free: 10.69 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001033/0.3827, allocations: 252.6 kB / 0.5027 GB, free: 10.44 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006344/0.3834, allocations: 183.8 kB / 0.5028 GB, free: 10.26 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002683/0.386, allocations: 2.478 MB / 0.5052 GB, free: 7.656 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001341/0.3874, allocations: 131.6 kB / 0.5054 GB, free: 7.527 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.638e-05/0.3875, allocations: 20 kB / 0.5054 GB, free: 7.508 MB / 314.7 MB Warning: Assuming fixed start value for the following 3 variables: bat3.battery.integrator.q:VARIABLE(flow=false start = bat3.battery.SOC_start fixed = true ) "Charge as current integration" type: Real bat2.battery.integrator.q:VARIABLE(flow=false start = bat2.battery.SOC_start fixed = true ) "Charge as current integration" type: Real bat1.battery.integrator.q:VARIABLE(flow=false start = bat1.battery.SOC_start fixed = true ) "Charge as current integration" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 1 (charging.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 66 * 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 {(6,6)} Notification: Performance of prepare postOptimizeDAE: time 0.001323/0.3888, allocations: 0.9417 MB / 0.5063 GB, free: 6.559 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003345/0.3891, allocations: 268.7 kB / 0.5066 GB, free: 6.293 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002507/0.3916, allocations: 1.307 MB / 0.5078 GB, free: 4.969 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.13e-06/0.3917, allocations: 7.938 kB / 0.5078 GB, free: 4.961 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.224e-06/0.3917, allocations: 4 kB / 0.5079 GB, free: 4.957 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.3917, allocations: 3.984 kB / 0.5079 GB, free: 4.953 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004846/0.3965, allocations: 3.421 MB / 0.5112 GB, free: 1.469 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.3966, allocations: 4.094 kB / 0.5112 GB, free: 1.465 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005975/0.3972, allocations: 159.8 kB / 0.5114 GB, free: 1.309 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001041/0.3982, allocations: 256.5 kB / 0.5116 GB, free: 1.055 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.425e-05/0.3983, allocations: 15.98 kB / 0.5116 GB, free: 1.039 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002817/0.4011, allocations: 2.434 MB / 0.514 GB, free: 14.47 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.4011, allocations: 4 kB / 0.514 GB, free: 14.47 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003917/0.405, allocations: 1.752 MB / 0.5157 GB, free: 12.69 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009974/0.406, allocations: 0.5287 MB / 0.5162 GB, free: 12.14 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000228/0.4063, allocations: 19.98 kB / 0.5162 GB, free: 12.12 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000797/0.4071, allocations: 108.2 kB / 0.5163 GB, free: 12.01 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002098/0.4073, allocations: 80.45 kB / 0.5164 GB, free: 11.93 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.77e-05/0.4074, allocations: 19.98 kB / 0.5164 GB, free: 11.91 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.004998/0.4124, allocations: 3.488 MB / 0.5198 GB, free: 8.426 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.4124, allocations: 0 / 0.5198 GB, free: 8.426 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001218/0.4136, allocations: 355.4 kB / 0.5202 GB, free: 8.078 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (bat1.battery.integrator.q,bat2.battery.integrator.q,bat3.battery.integrator.q) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 54 * 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 {(6,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008856/0.4145, allocations: 333.3 kB / 0.5205 GB, free: 7.824 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002186/0.4167, allocations: 1.002 MB / 0.5215 GB, free: 6.812 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.686e-06/0.4167, allocations: 8.297 kB / 0.5215 GB, free: 6.805 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001294/0.418, allocations: 0.6306 MB / 0.5221 GB, free: 6.156 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001387/0.4194, allocations: 214.2 kB / 0.5223 GB, free: 5.945 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0101/0.4295, allocations: 5.89 MB / 0.5281 GB, free: 12 kB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002139/0.4317, allocations: 1.82 MB / 0.5298 GB, free: 14.16 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001116/0.4329, allocations: 356.1 kB / 0.5302 GB, free: 13.8 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005693/0.4334, allocations: 127.4 kB / 0.5303 GB, free: 13.68 MB / 346.7 MB Notification: Performance of SimCode: time 7.61e-07/0.4335, allocations: 0 / 0.5303 GB, free: 13.68 MB / 346.7 MB Notification: Performance of Templates: time 0.04538/0.4788, allocations: 24.14 MB / 0.5539 GB, free: 5.559 MB / 362.7 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.makefile (rm -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.sim & ./PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.pipe 2>&1)