Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.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.Batteries.Examples.BatteryDischargeChargeFromMSL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=72000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL") translateModel(PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=72000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001322/0.001322, allocations: 173.5 kB / 16.12 MB, free: 5.691 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.361/1.361, allocations: 225.7 MB / 242.6 MB, free: 8.457 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.0009133/0.0009134, allocations: 86.91 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.04876/0.04876, allocations: 8.107 MB / 353 MB, free: 14.18 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003571/0.0003572, allocations: 8.531 kB / 416.2 MB, free: 56.12 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09574/0.09611, allocations: 52.5 MB / 468.7 MB, free: 3.555 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL): time 0.003259/0.09943, allocations: 2.905 MB / 471.6 MB, free: 0.6367 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002325/0.1018, allocations: 1.47 MB / 473.1 MB, free: 15.11 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000377/0.1022, allocations: 7.938 kB / 473.1 MB, free: 15.1 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006827/0.1029, allocations: 163.3 kB / 473.3 MB, free: 14.94 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005666/0.1035, allocations: 151.1 kB / 473.4 MB, free: 14.79 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006724/0.1042, allocations: 223.6 kB / 473.6 MB, free: 14.57 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007297/0.1049, allocations: 0.5259 MB / 474.2 MB, free: 14.04 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002909/0.1052, allocations: 148.7 kB / 474.3 MB, free: 13.89 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003176/0.1055, allocations: 167.2 kB / 474.5 MB, free: 13.73 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003651/0.1059, allocations: 207 kB / 474.7 MB, free: 13.52 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 7.846e-05/0.106, allocations: 20 kB / 474.7 MB, free: 13.5 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002026/0.1062, allocations: 63.91 kB / 474.7 MB, free: 13.44 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000217/0.1064, allocations: 131.5 kB / 474.9 MB, free: 13.31 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002733/0.1067, allocations: 248.4 kB / 475.1 MB, free: 13.06 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006587/0.1074, allocations: 0.607 MB / 475.7 MB, free: 12.45 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.1074, allocations: 4 kB / 475.7 MB, free: 12.45 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1074, allocations: 0 / 475.7 MB, free: 12.45 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.732e-05/0.1074, allocations: 0 / 475.7 MB, free: 12.45 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: 65 * Number of variables: 65 Notification: Performance of Generate backend data structure: time 0.002251/0.1097, allocations: 0.9818 MB / 476.7 MB, free: 11.42 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.579e-05/0.1098, allocations: 12.03 kB / 476.7 MB, free: 11.41 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001795/0.1099, allocations: 56.28 kB / 476.8 MB, free: 11.35 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008379/0.1108, allocations: 490.4 kB / 477.3 MB, free: 10.83 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000256/0.1111, allocations: 81.05 kB / 477.3 MB, free: 10.75 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.14e-05/0.1111, allocations: 27.94 kB / 477.4 MB, free: 10.73 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007939/0.1119, allocations: 409.5 kB / 477.8 MB, free: 10.3 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.112, allocations: 0 / 477.8 MB, free: 10.3 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.754e-05/0.112, allocations: 12 kB / 477.8 MB, free: 10.29 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.739e-06/0.112, allocations: 4 kB / 477.8 MB, free: 10.28 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005845/0.1126, allocations: 274 kB / 478 MB, free: 10.01 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002489/0.1151, allocations: 1.539 MB / 479.6 MB, free: 8.375 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007399/0.1159, allocations: 339.4 kB / 479.9 MB, free: 8.016 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003097/0.1162, allocations: 120.8 kB / 480 MB, free: 7.895 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.34e-05/0.1162, allocations: 4 kB / 480 MB, free: 7.891 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.941e-05/0.1163, allocations: 34.56 kB / 480.1 MB, free: 7.848 MB / 314.7 MB Notification: Performance of pre-optimization done (n=13): time 1.353e-06/0.1163, allocations: 4 kB / 480.1 MB, free: 7.844 MB / 314.7 MB Notification: Performance of matching and sorting (n=13): time 0.0009544/0.1172, allocations: 349.2 kB / 480.4 MB, free: 7.496 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.432e-05/0.1173, allocations: 209.6 kB / 480.6 MB, free: 7.242 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007431/0.1181, allocations: 0.5759 MB / 481.2 MB, free: 6.652 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.037e-05/0.1181, allocations: 29.64 kB / 481.2 MB, free: 6.617 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001966/0.1183, allocations: 255.8 kB / 481.5 MB, free: 6.363 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.233e-05/0.1184, allocations: 59.28 kB / 481.5 MB, free: 6.305 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.547e-05/0.1184, allocations: 4 kB / 481.5 MB, free: 6.301 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001451/0.1186, allocations: 354.8 kB / 481.9 MB, free: 5.945 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000287/0.1189, allocations: 107.9 kB / 482 MB, free: 5.84 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000358/0.1193, allocations: 239.8 kB / 482.2 MB, free: 5.555 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004822/0.1197, allocations: 229.7 kB / 482.4 MB, free: 5.297 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.1198, allocations: 0 / 482.4 MB, free: 5.297 MB / 314.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0007033/0.1205, allocations: 317 kB / 482.8 MB, free: 4.98 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.3e-05/0.1205, allocations: 8 kB / 482.8 MB, free: 4.973 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.302e-05/0.1205, allocations: 7.938 kB / 482.8 MB, free: 4.965 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.911e-05/0.1205, allocations: 7.984 kB / 482.8 MB, free: 4.957 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002491/0.1208, allocations: 64.28 kB / 482.8 MB, free: 4.895 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.268e-05/0.1208, allocations: 4 kB / 482.8 MB, free: 4.891 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006121/0.1214, allocations: 139.6 kB / 483 MB, free: 4.754 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.254e-05/0.1215, allocations: 19.98 kB / 483 MB, free: 4.734 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 3 (pulseSeries.on1,pulseSeries.on2,battery.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 24 * 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.000208/0.1217, allocations: 178.3 kB / 483.2 MB, free: 4.551 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.951e-05/0.1218, allocations: 47.44 kB / 483.2 MB, free: 4.504 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007423/0.1225, allocations: 293.1 kB / 483.5 MB, free: 4.211 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.1225, allocations: 0 / 483.5 MB, free: 4.211 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.1226, allocations: 96 / 483.5 MB, free: 4.211 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.1226, allocations: 3.938 kB / 483.5 MB, free: 4.207 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00125/0.1238, allocations: 0.7838 MB / 484.3 MB, free: 3.363 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.1238, allocations: 0 / 484.3 MB, free: 3.363 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001896/0.124, allocations: 43.94 kB / 484.3 MB, free: 3.32 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.07e-06/0.1241, allocations: 4 kB / 484.3 MB, free: 3.316 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.061e-05/0.1241, allocations: 3.984 kB / 484.4 MB, free: 3.312 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.903e-06/0.1241, allocations: 0 / 484.4 MB, free: 3.312 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.1241, allocations: 4 kB / 484.4 MB, free: 3.309 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000953/0.1251, allocations: 0.4919 MB / 484.8 MB, free: 2.797 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002/0.1253, allocations: 164.5 kB / 485 MB, free: 2.617 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.988e-05/0.1253, allocations: 4 kB / 485 MB, free: 2.613 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006353/0.126, allocations: 139.9 kB / 485.1 MB, free: 2.477 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000302/0.1263, allocations: 127.8 kB / 485.3 MB, free: 2.352 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.357e-05/0.1263, allocations: 8 kB / 485.3 MB, free: 2.344 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005222/0.1269, allocations: 423.1 kB / 485.7 MB, free: 1.934 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1269, allocations: 3.938 kB / 485.7 MB, free: 1.93 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003935/0.1273, allocations: 99.84 kB / 485.8 MB, free: 1.832 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (battery.limIntegrator.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 (13): * Single equations (assignments): 13 * 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.0008247/0.1281, allocations: 420.6 kB / 486.2 MB, free: 1.527 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006942/0.1288, allocations: 263.7 kB / 486.5 MB, free: 1.27 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.17e-06/0.1288, allocations: 0 / 486.5 MB, free: 1.27 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003691/0.1292, allocations: 164.5 kB / 486.6 MB, free: 1.109 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006135/0.1298, allocations: 99.53 kB / 486.7 MB, free: 1.012 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1859/0.3157, allocations: 1.022 MB / 487.7 MB, free: 26.47 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004075/0.3162, allocations: 0.8232 MB / 488.6 MB, free: 25.77 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0004051/0.3166, allocations: 70.58 kB / 488.6 MB, free: 25.77 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001404/0.3167, allocations: 34.11 kB / 488.7 MB, free: 25.76 MB / 314.7 MB Notification: Performance of SimCode: time 9.42e-07/0.3168, allocations: 0.7188 kB / 488.7 MB, free: 25.76 MB / 314.7 MB Notification: Performance of Templates: time 0.01521/0.332, allocations: 6.855 MB / 495.5 MB, free: 25 MB / 314.7 MB make -j1 -f PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.makefile (rm -f PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe ; mkfifo PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe >> ../files/PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.sim & ./PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe 2>&1)