Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.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) 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.BatteryDischargeCharge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=72000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge") translateModel(PowerSysPro.Batteries.Examples.BatteryDischargeCharge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=72000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.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.001426/0.001426, allocations: 178.6 kB / 16.12 MB, free: 5.566 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.479/1.479, allocations: 225.7 MB / 242.6 MB, free: 10.19 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.0008378/0.0008379, allocations: 93.52 kB / 293.8 MB, free: 9.73 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.05028/0.05028, allocations: 8.104 MB / 353 MB, free: 14.43 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003673/0.0003673, allocations: 8 kB / 416.2 MB, free: 56.18 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.1093, allocations: 52.53 MB / 468.7 MB, free: 3.586 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeCharge): time 0.002343/0.1117, allocations: 2.003 MB / 470.7 MB, free: 1.574 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007093/0.1125, allocations: 0.6297 MB / 471.4 MB, free: 0.9062 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.648e-05/0.1126, allocations: 4 kB / 471.4 MB, free: 0.9023 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003387/0.1129, allocations: 87.55 kB / 471.5 MB, free: 0.8164 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001684/0.1131, allocations: 75.66 kB / 471.5 MB, free: 0.7422 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00016/0.1133, allocations: 67.88 kB / 471.6 MB, free: 0.6758 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001975/0.1135, allocations: 283.1 kB / 471.9 MB, free: 408 kB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001586/0.1136, allocations: 95.55 kB / 472 MB, free: 304 kB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.028e-05/0.1137, allocations: 95.56 kB / 472.1 MB, free: 208 kB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001644/0.1139, allocations: 123.4 kB / 472.2 MB, free: 84 kB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.809e-05/0.1139, allocations: 12 kB / 472.2 MB, free: 72 kB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001417/0.1141, allocations: 59.97 kB / 472.3 MB, free: 12 kB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001773/0.1143, allocations: 91.69 kB / 472.4 MB, free: 15.92 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001526/0.1144, allocations: 160.9 kB / 472.5 MB, free: 15.76 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003771/0.1148, allocations: 370.7 kB / 472.9 MB, free: 15.39 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.1148, allocations: 0 / 472.9 MB, free: 15.39 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.456e-06/0.1148, allocations: 3.984 kB / 472.9 MB, free: 15.39 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.262e-06/0.1149, allocations: 4 kB / 472.9 MB, free: 15.39 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001695/0.1166, allocations: 0.8068 MB / 473.7 MB, free: 14.52 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.059e-05/0.1166, allocations: 12.03 kB / 473.7 MB, free: 14.51 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.122e-05/0.1167, allocations: 32.55 kB / 473.7 MB, free: 14.48 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004295/0.1171, allocations: 355.4 kB / 474.1 MB, free: 14.09 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.982e-05/0.1172, allocations: 12.7 kB / 474.1 MB, free: 14.08 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.204e-05/0.1172, allocations: 20.38 kB / 474.1 MB, free: 14.06 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004873/0.1177, allocations: 283 kB / 474.4 MB, free: 13.76 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.376e-06/0.1177, allocations: 4.188 kB / 474.4 MB, free: 13.76 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.872e-05/0.1178, allocations: 11.94 kB / 474.4 MB, free: 13.75 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/0.1178, allocations: 4 kB / 474.4 MB, free: 13.74 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003857/0.1182, allocations: 188.2 kB / 474.6 MB, free: 13.56 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00127/0.1194, allocations: 0.8765 MB / 475.5 MB, free: 12.62 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005941/0.12, allocations: 315.6 kB / 475.8 MB, free: 12.28 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003137/0.1204, allocations: 148.8 kB / 475.9 MB, free: 12.13 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.206e-05/0.1204, allocations: 7.984 kB / 475.9 MB, free: 12.12 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.041e-05/0.1205, allocations: 34.56 kB / 476 MB, free: 12.08 MB / 314.7 MB Notification: Performance of pre-optimization done (n=13): time 1.202e-06/0.1205, allocations: 0 / 476 MB, free: 12.08 MB / 314.7 MB Notification: Performance of matching and sorting (n=13): time 0.0006902/0.1212, allocations: 289.2 kB / 476.2 MB, free: 11.79 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001137/0.1213, allocations: 209.6 kB / 476.4 MB, free: 11.54 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003983/0.1217, allocations: 366.7 kB / 476.8 MB, free: 11.18 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.371e-05/0.1217, allocations: 29.7 kB / 476.8 MB, free: 11.14 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001115/0.1218, allocations: 168.1 kB / 477 MB, free: 10.97 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.746e-05/0.1219, allocations: 39.38 kB / 477 MB, free: 10.93 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.892e-05/0.1219, allocations: 4 kB / 477 MB, free: 10.93 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001366/0.1221, allocations: 338.8 kB / 477.4 MB, free: 10.59 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002257/0.1223, allocations: 87.94 kB / 477.5 MB, free: 10.5 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002454/0.1225, allocations: 159.9 kB / 477.6 MB, free: 10.32 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007608/0.1233, allocations: 262.3 kB / 477.9 MB, free: 10.05 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.1233, allocations: 0 / 477.9 MB, free: 10.05 MB / 314.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004465/0.1238, allocations: 217.3 kB / 478.1 MB, free: 9.836 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.429e-05/0.1238, allocations: 4 kB / 478.1 MB, free: 9.832 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.603e-06/0.1238, allocations: 4 kB / 478.1 MB, free: 9.828 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.393e-05/0.1238, allocations: 0 / 478.1 MB, free: 9.828 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001554/0.124, allocations: 35.92 kB / 478.1 MB, free: 9.793 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.951e-06/0.124, allocations: 0 / 478.1 MB, free: 9.793 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004954/0.1245, allocations: 131.8 kB / 478.3 MB, free: 9.664 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.581e-05/0.1245, allocations: 4 kB / 478.3 MB, free: 9.66 MB / 314.7 MB Warning: Assuming fixed start value for the following 1 variables: battery.integrator.q:VARIABLE(flow=false start = 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: 3 * Number of states: 0 () * 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 initialization (15): * Single equations (assignments): 15 * 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.0002532/0.1248, allocations: 161.9 kB / 478.4 MB, free: 9.492 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.447e-05/0.1249, allocations: 31.7 kB / 478.4 MB, free: 9.461 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005646/0.1254, allocations: 244.1 kB / 478.7 MB, free: 9.219 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.1255, allocations: 4 kB / 478.7 MB, free: 9.215 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.1255, allocations: 4 kB / 478.7 MB, free: 9.211 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.1255, allocations: 3.984 kB / 478.7 MB, free: 9.207 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009562/0.1264, allocations: 0.6667 MB / 479.4 MB, free: 8.48 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.013e-06/0.1264, allocations: 0 / 479.4 MB, free: 8.48 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000153/0.1266, allocations: 31.98 kB / 479.4 MB, free: 8.449 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/0.1266, allocations: 0 / 479.4 MB, free: 8.449 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.8e-05/0.1266, allocations: 7.938 kB / 479.4 MB, free: 8.441 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/0.1267, allocations: 7.875 kB / 479.4 MB, free: 8.434 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.1267, allocations: 32 / 479.4 MB, free: 8.434 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007209/0.1274, allocations: 448.1 kB / 479.8 MB, free: 7.977 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.513e-05/0.1275, allocations: 112.8 kB / 480 MB, free: 7.848 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.585e-05/0.1275, allocations: 4 kB / 480 MB, free: 7.844 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004946/0.128, allocations: 123.9 kB / 480.1 MB, free: 7.723 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002636/0.1283, allocations: 123.8 kB / 480.2 MB, free: 7.602 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.729e-05/0.1283, allocations: 4 kB / 480.2 MB, free: 7.598 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002881/0.1286, allocations: 277.9 kB / 480.5 MB, free: 7.324 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1286, allocations: 0 / 480.5 MB, free: 7.324 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003026/0.129, allocations: 67.84 kB / 480.5 MB, free: 7.258 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (battery.integrator.q) * 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.0006398/0.1296, allocations: 308.8 kB / 480.8 MB, free: 7.016 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005003/0.1301, allocations: 207.8 kB / 481 MB, free: 6.812 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.083e-06/0.1301, allocations: 0 / 481 MB, free: 6.812 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002882/0.1304, allocations: 139.8 kB / 481.2 MB, free: 6.676 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003228/0.1307, allocations: 28.61 kB / 481.2 MB, free: 6.648 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001697/0.1325, allocations: 0.7957 MB / 482 MB, free: 5.824 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003556/0.1328, allocations: 0.7638 MB / 482.8 MB, free: 5.031 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001545/0.133, allocations: 37.53 kB / 482.8 MB, free: 4.996 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001041/0.1331, allocations: 31.36 kB / 482.8 MB, free: 4.965 MB / 314.7 MB Notification: Performance of SimCode: time 2e-07/0.1331, allocations: 0 / 482.8 MB, free: 4.965 MB / 314.7 MB Notification: Performance of Templates: time 0.007708/0.1408, allocations: 4.292 MB / 487.1 MB, free: 0.6719 MB / 314.7 MB make -j1 -f PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.makefile (rm -f PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.sim & ./PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1)