Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.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.OneBatteryOneLineOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad") translateModel(PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001235/0.001235, allocations: 181.9 kB / 16.13 MB, free: 5.559 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.412/1.412, allocations: 225.7 MB / 242.6 MB, free: 8.504 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.0009438/0.0009441, allocations: 97.47 kB / 293.8 MB, free: 9.531 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.04412/0.04412, allocations: 8.107 MB / 353 MB, free: 14.23 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003433/0.0003435, allocations: 12 kB / 416.2 MB, free: 56.17 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08899/0.08934, allocations: 52.51 MB / 468.7 MB, free: 3.594 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad): time 0.002571/0.09196, allocations: 2.682 MB / 471.4 MB, free: 0.8984 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001929/0.09392, allocations: 1.942 MB / 473.4 MB, free: 14.75 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00014/0.09408, allocations: 4 kB / 473.4 MB, free: 14.75 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000749/0.09484, allocations: 419.1 kB / 473.8 MB, free: 14.34 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004137/0.09526, allocations: 251.1 kB / 474 MB, free: 14.09 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002068/0.09734, allocations: 2.041 MB / 476.1 MB, free: 11.77 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005596/0.09791, allocations: 0.4982 MB / 476.6 MB, free: 11.27 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002301/0.09815, allocations: 144.5 kB / 476.7 MB, free: 11.12 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001731/0.09833, allocations: 191.3 kB / 476.9 MB, free: 10.93 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003925/0.09873, allocations: 342.9 kB / 477.2 MB, free: 10.6 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 5.452e-05/0.09879, allocations: 20 kB / 477.2 MB, free: 10.58 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000449/0.09925, allocations: 243.8 kB / 477.5 MB, free: 10.34 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002779/0.09954, allocations: 315.1 kB / 477.8 MB, free: 10.03 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003364/0.09988, allocations: 427.1 kB / 478.2 MB, free: 9.605 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001093/0.101, allocations: 1.258 MB / 479.5 MB, free: 8.344 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.101, allocations: 0 / 479.5 MB, free: 8.344 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.101, allocations: 0 / 479.5 MB, free: 8.344 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.896e-06/0.101, allocations: 0 / 479.5 MB, free: 8.344 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.002807/0.1038, allocations: 1.386 MB / 480.8 MB, free: 6.906 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.083e-05/0.1039, allocations: 19.95 kB / 480.9 MB, free: 6.887 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001653/0.1041, allocations: 115.5 kB / 481 MB, free: 6.773 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001124/0.1052, allocations: 0.8565 MB / 481.8 MB, free: 5.863 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001131/0.1053, allocations: 84.45 kB / 481.9 MB, free: 5.77 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.737e-05/0.1054, allocations: 28.38 kB / 481.9 MB, free: 5.742 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008182/0.1062, allocations: 461 kB / 482.4 MB, free: 5.262 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.125e-05/0.1062, allocations: 0 / 482.4 MB, free: 5.262 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.164e-05/0.1063, allocations: 12 kB / 482.4 MB, free: 5.25 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.005e-05/0.1063, allocations: 8 kB / 482.4 MB, free: 5.242 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006124/0.1069, allocations: 330.1 kB / 482.7 MB, free: 4.922 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003227/0.1101, allocations: 2.162 MB / 484.9 MB, free: 2.637 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001017/0.1112, allocations: 492.4 kB / 485.4 MB, free: 2.129 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004318/0.1116, allocations: 221.2 kB / 485.6 MB, free: 1.91 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001572/0.1118, allocations: 93.27 kB / 485.7 MB, free: 1.801 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.391e-05/0.1118, allocations: 38.8 kB / 485.7 MB, free: 1.754 MB / 314.7 MB Notification: Performance of pre-optimization done (n=28): time 2.284e-06/0.1118, allocations: 0 / 485.7 MB, free: 1.754 MB / 314.7 MB Notification: Performance of matching and sorting (n=28): time 0.002325/0.1142, allocations: 0.8464 MB / 486.6 MB, free: 0.8828 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001349/0.1143, allocations: 239.3 kB / 486.8 MB, free: 0.5938 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2125/0.3269, allocations: 1.72 MB / 488.5 MB, free: 26.06 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001274/0.327, allocations: 33.39 kB / 488.6 MB, free: 26.03 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004755/0.3275, allocations: 443.5 kB / 489 MB, free: 25.94 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001071/0.3276, allocations: 96.25 kB / 489.1 MB, free: 25.93 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.191e-05/0.3277, allocations: 9.781 kB / 489.1 MB, free: 25.92 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.434e-05/0.3278, allocations: 317.1 kB / 489.4 MB, free: 25.61 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004132/0.3282, allocations: 158 kB / 489.6 MB, free: 25.55 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004401/0.3286, allocations: 256.2 kB / 489.8 MB, free: 25.4 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003682/0.3323, allocations: 0.9769 MB / 490.8 MB, free: 25.12 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.079e-06/0.3324, allocations: 3.781 kB / 490.8 MB, free: 25.12 MB / 314.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001635/0.334, allocations: 0.6188 MB / 491.4 MB, free: 24.86 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.388e-05/0.334, allocations: 5.062 kB / 491.4 MB, free: 24.86 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.058e-05/0.3341, allocations: 3.844 kB / 491.4 MB, free: 24.86 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006918/0.3348, allocations: 146.5 kB / 491.6 MB, free: 24.82 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003216/0.3351, allocations: 79.05 kB / 491.6 MB, free: 24.81 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002197/0.3373, allocations: 1.887 MB / 493.5 MB, free: 23.18 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005789/0.3379, allocations: 50.03 kB / 493.6 MB, free: 23.17 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.214e-05/0.3379, allocations: 16.5 kB / 493.6 MB, free: 23.16 MB / 314.7 MB Warning: Assuming fixed start value for the following 1 variables: bat.battery.integrator.q:VARIABLE(flow=false start = bat.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: 4 * 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 (33): * Single equations (assignments): 32 * 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 {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0007292/0.3387, allocations: 403.1 kB / 494 MB, free: 22.95 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001445/0.3388, allocations: 100.4 kB / 494.1 MB, free: 22.89 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001437/0.3403, allocations: 0.6024 MB / 494.7 MB, free: 22.64 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.3403, allocations: 2.281 kB / 494.7 MB, free: 22.64 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.805e-06/0.3403, allocations: 2.156 kB / 494.7 MB, free: 22.64 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.016e-05/0.3403, allocations: 1.312 kB / 494.7 MB, free: 22.64 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002655/0.343, allocations: 1.488 MB / 496.2 MB, free: 21.89 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.962e-06/0.343, allocations: 1.828 kB / 496.2 MB, free: 21.89 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002881/0.3433, allocations: 60.39 kB / 496.2 MB, free: 21.88 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000643/0.3439, allocations: 146.5 kB / 496.4 MB, free: 21.84 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.805e-05/0.344, allocations: 13.59 kB / 496.4 MB, free: 21.83 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001877/0.3459, allocations: 1.866 MB / 498.3 MB, free: 20.21 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/0.3459, allocations: 5.609 kB / 498.3 MB, free: 20.21 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001811/0.3477, allocations: 0.8477 MB / 499.1 MB, free: 19.77 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003698/0.3481, allocations: 237.8 kB / 499.3 MB, free: 19.59 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.475e-05/0.3482, allocations: 12.78 kB / 499.4 MB, free: 19.58 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003881/0.3486, allocations: 51 kB / 499.4 MB, free: 19.57 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001316/0.3487, allocations: 30.72 kB / 499.4 MB, free: 19.57 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.539e-05/0.3488, allocations: 6.891 kB / 499.4 MB, free: 19.57 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001857/0.3506, allocations: 1.252 MB / 0.489 GB, free: 19.11 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.3506, allocations: 0 / 0.489 GB, free: 19.11 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006492/0.3513, allocations: 158.6 kB / 0.4891 GB, free: 19.08 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (bat.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 (25): * 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: 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 {(2,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00071/0.352, allocations: 312.4 kB / 0.4894 GB, free: 18.89 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001241/0.3533, allocations: 0.5254 MB / 0.4899 GB, free: 18.63 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.3533, allocations: 1.219 kB / 0.4899 GB, free: 18.63 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000626/0.3539, allocations: 349.3 kB / 0.4903 GB, free: 18.44 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005839/0.3545, allocations: 85.11 kB / 0.4903 GB, free: 18.38 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003148/0.3577, allocations: 2.171 MB / 0.4925 GB, free: 17.29 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006772/0.3584, allocations: 1.081 MB / 0.4935 GB, free: 16.52 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003758/0.3587, allocations: 130.7 kB / 0.4936 GB, free: 16.5 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001546/0.3589, allocations: 50.44 kB / 0.4937 GB, free: 16.49 MB / 314.7 MB Notification: Performance of SimCode: time 5.21e-07/0.3589, allocations: 1.031 kB / 0.4937 GB, free: 16.49 MB / 314.7 MB Notification: Performance of Templates: time 0.01848/0.3774, allocations: 10.2 MB / 0.5036 GB, free: 10.58 MB / 314.7 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.makefile (rm -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.sim & ./PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe 2>&1)