Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSysPro.Examples.UsingBatteries.ChargingBatteries,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_UsingBatteries_ChargingBatteries",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.UsingBatteries.ChargingBatteries,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_UsingBatteries_ChargingBatteries",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001027/0.001027, allocations: 176.7 kB / 8.051 MB, free: 1.023 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.459/1.459, allocations: 221.5 MB / 230 MB, free: 7.57 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009313/0.0009311, allocations: 99.89 kB / 280.9 MB, free: 5.328 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.04169/0.04169, allocations: 8.095 MB / 339.8 MB, free: 7.012 MB / 234.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 1.772e-05/1.773e-05, allocations: 3.375 kB / 398.6 MB, free: 49.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.105, allocations: 52.52 MB / 451.1 MB, free: 5.383 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1091/0.2142, allocations: 82.6 MB / 0.5212 GB, free: 2.672 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002544/0.2145, allocations: 75.95 kB / 0.5213 GB, free: 2.598 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3221/0.5366, allocations: 30.2 MB / 0.5507 GB, free: 66.62 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.5366, allocations: 0 / 0.5507 GB, free: 66.62 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.212e-05/0.5367, allocations: 36 kB / 0.5508 GB, free: 66.59 MB / 362.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.003962/0.5407, allocations: 2.221 MB / 0.5529 GB, free: 64.31 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.482e-05/0.5407, allocations: 11.98 kB / 0.553 GB, free: 64.3 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005813/0.5413, allocations: 300.2 kB / 0.5532 GB, free: 64 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002781/0.5441, allocations: 2.131 MB / 0.5553 GB, free: 61.81 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000128/0.5443, allocations: 199.5 kB / 0.5555 GB, free: 61.58 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.495e-05/0.5444, allocations: 39.91 kB / 0.5556 GB, free: 61.54 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008099/0.5452, allocations: 0.561 MB / 0.5561 GB, free: 60.98 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001008/0.5462, allocations: 0.8095 MB / 0.5569 GB, free: 60.1 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.579e-05/0.5462, allocations: 4 kB / 0.5569 GB, free: 60.09 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.962e-05/0.5463, allocations: 0 / 0.5569 GB, free: 60.09 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.181e-05/0.5463, allocations: 19.95 kB / 0.5569 GB, free: 60.07 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006926/0.5532, allocations: 4.916 MB / 0.5617 GB, free: 55.02 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001239/0.5545, allocations: 1.157 MB / 0.5628 GB, free: 53.75 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005791/0.5551, allocations: 449.9 kB / 0.5633 GB, free: 53.31 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.837e-05/0.5552, allocations: 12.55 kB / 0.5633 GB, free: 53.3 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.885e-05/0.5552, allocations: 43.31 kB / 0.5633 GB, free: 53.25 MB / 362.7 MB Notification: Performance of pre-optimization done (n=63): time 2.314e-06/0.5553, allocations: 0 / 0.5633 GB, free: 53.25 MB / 362.7 MB Notification: Performance of matching and sorting (n=63): time 0.002365/0.5576, allocations: 0.961 MB / 0.5643 GB, free: 52.27 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001618/0.5578, allocations: 0.5859 MB / 0.5648 GB, free: 51.54 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005786/0.5636, allocations: 4.261 MB / 0.569 GB, free: 47.27 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001833/0.5638, allocations: 25.7 kB / 0.569 GB, free: 47.24 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008875/0.5647, allocations: 1.135 MB / 0.5701 GB, free: 46.1 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001736/0.5649, allocations: 208.8 kB / 0.5703 GB, free: 45.89 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.372e-05/0.5649, allocations: 0 / 0.5703 GB, free: 45.89 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.594e-05/0.565, allocations: 330 kB / 0.5707 GB, free: 45.56 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003009/0.5653, allocations: 229.5 kB / 0.5709 GB, free: 45.34 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003917/0.5657, allocations: 447.9 kB / 0.5713 GB, free: 44.81 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005219/0.5662, allocations: 272.1 kB / 0.5716 GB, free: 44.55 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.322e-05/0.5663, allocations: 0.5625 kB / 0.5716 GB, free: 44.55 MB / 362.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002153/0.5684, allocations: 1.035 MB / 0.5726 GB, free: 43.5 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.076e-05/0.5685, allocations: 4 kB / 0.5726 GB, free: 43.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.268e-06/0.5685, allocations: 7.984 kB / 0.5726 GB, free: 43.49 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001086/0.5696, allocations: 248.6 kB / 0.5728 GB, free: 43.24 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006357/0.5702, allocations: 179.8 kB / 0.573 GB, free: 43.07 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00246/0.5727, allocations: 2.373 MB / 0.5753 GB, free: 40.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001072/0.5738, allocations: 115.6 kB / 0.5754 GB, free: 40.47 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.759e-05/0.5739, allocations: 20.06 kB / 0.5754 GB, free: 40.45 MB / 362.7 MB Warning: Assuming fixed start value for the following 3 variables: bat3.battery.integrator.q:VARIABLE(start = bat3.battery.SOC_start ) "Charge as current integration" type: Real bat2.battery.integrator.q:VARIABLE(start = bat2.battery.SOC_start ) "Charge as current integration" type: Real bat1.battery.integrator.q:VARIABLE(start = bat1.battery.SOC_start ) "Charge as current integration" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bat3.terminal.i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real bat1.terminal.i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real bat3.terminal.i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real bat2.terminal.i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 6} Notification: Performance of prepare postOptimizeDAE: time 0.0002593/0.5741, allocations: 149 kB / 0.5756 GB, free: 40.3 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001868/0.576, allocations: 0.9649 MB / 0.5765 GB, free: 39.33 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002911/0.5763, allocations: 272.6 kB / 0.5768 GB, free: 39.06 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002409/0.5787, allocations: 1.073 MB / 0.5778 GB, free: 37.96 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.665e-06/0.5787, allocations: 8 kB / 0.5778 GB, free: 37.96 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.425e-06/0.5787, allocations: 0 / 0.5778 GB, free: 37.96 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.04e-05/0.5788, allocations: 3.984 kB / 0.5778 GB, free: 37.95 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004753/0.5835, allocations: 3.448 MB / 0.5812 GB, free: 34.44 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.29e-06/0.5836, allocations: 4 kB / 0.5812 GB, free: 34.44 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000599/0.5842, allocations: 155.9 kB / 0.5814 GB, free: 34.29 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009893/0.5852, allocations: 252.6 kB / 0.5816 GB, free: 34.04 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.801e-05/0.5852, allocations: 8 kB / 0.5816 GB, free: 34.03 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002286/0.5875, allocations: 2.37 MB / 0.5839 GB, free: 31.54 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.5875, allocations: 11.95 kB / 0.5839 GB, free: 31.53 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002491/0.59, allocations: 1.505 MB / 0.5854 GB, free: 29.97 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009758/0.591, allocations: 0.6148 MB / 0.586 GB, free: 29.33 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002691/0.5913, allocations: 8 kB / 0.586 GB, free: 29.32 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008006/0.5921, allocations: 96.05 kB / 0.5861 GB, free: 29.23 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001701/0.5923, allocations: 76.44 kB / 0.5862 GB, free: 29.16 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.651e-05/0.5923, allocations: 16 kB / 0.5862 GB, free: 29.14 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.004023/0.5963, allocations: 3.273 MB / 0.5894 GB, free: 25.87 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.5964, allocations: 0 / 0.5894 GB, free: 25.87 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001397/0.5978, allocations: 375.4 kB / 0.5897 GB, free: 25.5 MB / 362.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.003064/0.6008, allocations: 2.381 MB / 0.5921 GB, free: 23.11 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001159/0.602, allocations: 0.7565 MB / 0.5928 GB, free: 22.34 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.127e-06/0.602, allocations: 4.234 kB / 0.5928 GB, free: 22.34 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007339/0.6028, allocations: 0.515 MB / 0.5933 GB, free: 21.81 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001175/0.6039, allocations: 184.5 kB / 0.5935 GB, free: 21.63 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009343/0.6133, allocations: 4.853 MB / 0.5982 GB, free: 16.71 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001386/0.6147, allocations: 1.863 MB / 0.6 GB, free: 14.82 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001058/0.6158, allocations: 408 kB / 0.6004 GB, free: 14.42 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001074/0.6169, allocations: 0.9757 MB / 0.6014 GB, free: 13.44 MB / 362.7 MB Notification: Performance of SimCode: time 6.11e-07/0.6169, allocations: 0 / 0.6014 GB, free: 13.44 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07958/0.6965, allocations: 44.23 MB / 0.6446 GB, free: 1.164 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002145/0.6967, allocations: 166.8 kB / 0.6447 GB, free: 0.9727 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.262/3.959, allocations: 0 / 0.6447 GB, free: 0.9727 MB / 394.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_UsingBatteries_ChargingBatteries_fmu --startTime=0 --stopTime=36000 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_UsingBatteries_ChargingBatteries.fmu > PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.pipe 2>&1)