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: 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001079/0.00108, allocations: 186.9 kB / 16.68 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.355/1.355, allocations: 222.9 MB / 240.4 MB, free: 11.01 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001313/0.001313, allocations: 94.67 kB / 290.6 MB, free: 10.96 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.05109/0.05109, allocations: 8.09 MB / 348.8 MB, free: 0.7148 MB / 282.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0009971/0.0009971, allocations: 53.27 kB / 411.1 MB, free: 57.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09049/0.0915, allocations: 51.52 MB / 462.6 MB, free: 6.078 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.ChargingBatteries): time 0.005297/0.09684, allocations: 4.797 MB / 467.4 MB, free: 1.258 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002792/0.09966, allocations: 1.584 MB / 469 MB, free: 15.67 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005189/0.1002, allocations: 12 kB / 469 MB, free: 15.66 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001228/0.1015, allocations: 0.7287 MB / 469.7 MB, free: 14.93 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009239/0.1024, allocations: 0.5996 MB / 470.3 MB, free: 14.32 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001906/0.1043, allocations: 1.113 MB / 471.5 MB, free: 13.21 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001203/0.1055, allocations: 1.211 MB / 472.7 MB, free: 12 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004573/0.106, allocations: 361.9 kB / 473 MB, free: 11.62 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004503/0.1065, allocations: 0.5139 MB / 473.5 MB, free: 11.11 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008913/0.1074, allocations: 0.8842 MB / 474.4 MB, free: 10.22 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001381/0.1075, allocations: 72 kB / 474.5 MB, free: 10.15 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005912/0.1081, allocations: 291.8 kB / 474.8 MB, free: 9.867 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006677/0.1088, allocations: 0.9232 MB / 475.7 MB, free: 8.941 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009032/0.1097, allocations: 1.098 MB / 476.8 MB, free: 7.836 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002799/0.1125, allocations: 3.228 MB / 480 MB, free: 4.598 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.1125, allocations: 8 kB / 480 MB, free: 4.59 MB / 314.7 MB Notification: Performance of FrontEnd: time 8.52e-07/0.1126, allocations: 0 / 480 MB, free: 4.59 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.282e-05/0.1126, allocations: 0 / 480 MB, free: 4.59 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.007056/0.1197, allocations: 3.407 MB / 483.4 MB, free: 1.109 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.292e-05/0.1197, allocations: 8.031 kB / 483.4 MB, free: 1.102 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004964/0.1202, allocations: 289.3 kB / 483.7 MB, free: 0.8164 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1773/0.2975, allocations: 2.175 MB / 485.9 MB, free: 25.63 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001527/0.2977, allocations: 223.8 kB / 486.1 MB, free: 25.41 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001189/0.2978, allocations: 63.77 kB / 486.2 MB, free: 25.39 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001823/0.2997, allocations: 1.003 MB / 487.2 MB, free: 24.87 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.574e-05/0.2997, allocations: 0 / 487.2 MB, free: 24.87 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.152e-05/0.2998, allocations: 29.69 kB / 487.2 MB, free: 24.85 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.459e-05/0.2998, allocations: 14 kB / 487.2 MB, free: 24.85 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001364/0.3012, allocations: 0.6952 MB / 487.9 MB, free: 24.59 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00898/0.3102, allocations: 4.842 MB / 492.8 MB, free: 22.22 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002143/0.3124, allocations: 1.372 MB / 494.1 MB, free: 21.32 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001012/0.3134, allocations: 0.5155 MB / 494.7 MB, free: 21.13 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001412/0.3135, allocations: 93.8 kB / 494.7 MB, free: 21.04 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.715e-05/0.3136, allocations: 45.84 kB / 494.8 MB, free: 20.99 MB / 314.7 MB Notification: Performance of pre-optimization done (n=64): time 3.246e-06/0.3136, allocations: 1.188 kB / 494.8 MB, free: 20.99 MB / 314.7 MB Notification: Performance of matching and sorting (n=64): time 0.004826/0.3184, allocations: 1.665 MB / 496.5 MB, free: 20.3 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001171/0.3186, allocations: 0.5891 MB / 497 MB, free: 19.59 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00661/0.3252, allocations: 4.883 MB / 0.4902 GB, free: 18.04 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001616/0.3254, allocations: 44.19 kB / 0.4902 GB, free: 17.99 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000791/0.3262, allocations: 1.133 MB / 0.4913 GB, free: 17.06 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002126/0.3264, allocations: 217 kB / 0.4915 GB, free: 16.88 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002949/0.3267, allocations: 122.5 kB / 0.4916 GB, free: 16.8 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.311e-05/0.3268, allocations: 326.5 kB / 0.4919 GB, free: 16.48 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008186/0.3276, allocations: 319 kB / 0.4923 GB, free: 16.32 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009106/0.3285, allocations: 0.5499 MB / 0.4928 GB, free: 15.89 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005632/0.3342, allocations: 1.666 MB / 0.4944 GB, free: 15.03 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.504e-06/0.3342, allocations: 5.25 kB / 0.4944 GB, free: 15.03 MB / 314.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.004118/0.3384, allocations: 1.24 MB / 0.4956 GB, free: 14.36 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.339e-05/0.3384, allocations: 9.422 kB / 0.4956 GB, free: 14.36 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.818e-05/0.3385, allocations: 2.781 kB / 0.4956 GB, free: 14.36 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001207/0.3397, allocations: 261.3 kB / 0.4959 GB, free: 14.23 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006789/0.3404, allocations: 161.5 kB / 0.496 GB, free: 14.19 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002929/0.3433, allocations: 2.491 MB / 0.4985 GB, free: 12.12 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001602/0.3449, allocations: 114.2 kB / 0.4986 GB, free: 12.06 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.763e-05/0.345, allocations: 23.44 kB / 0.4986 GB, free: 12.05 MB / 314.7 MB Warning: Assuming fixed start value for the following 3 variables: bat1.battery.integrator.q:VARIABLE(flow=false start = bat1.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 bat3.battery.integrator.q:VARIABLE(flow=false start = bat3.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.001303/0.3463, allocations: 0.9395 MB / 0.4995 GB, free: 11.4 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005137/0.3468, allocations: 264.6 kB / 0.4998 GB, free: 11.14 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0026/0.3494, allocations: 1.261 MB / 0.501 GB, free: 9.859 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.464e-06/0.3494, allocations: 8 kB / 0.501 GB, free: 9.852 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.3495, allocations: 2.875 kB / 0.501 GB, free: 9.852 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.3495, allocations: 7.984 kB / 0.501 GB, free: 9.844 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004993/0.3545, allocations: 3.382 MB / 0.5043 GB, free: 6.402 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.219e-06/0.3545, allocations: 3.938 kB / 0.5043 GB, free: 6.398 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006001/0.3551, allocations: 139.8 kB / 0.5045 GB, free: 6.262 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001028/0.3561, allocations: 256.6 kB / 0.5047 GB, free: 6.008 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.227e-05/0.3562, allocations: 27.97 kB / 0.5047 GB, free: 5.98 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002401/0.3586, allocations: 2.435 MB / 0.5071 GB, free: 3.41 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.3586, allocations: 0 / 0.5071 GB, free: 3.41 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01165/0.3703, allocations: 7.056 MB / 0.514 GB, free: 12.18 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009675/0.3713, allocations: 0.5327 MB / 0.5145 GB, free: 11.62 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002223/0.3715, allocations: 15.91 kB / 0.5145 GB, free: 11.61 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007693/0.3723, allocations: 79.92 kB / 0.5146 GB, free: 11.53 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002135/0.3725, allocations: 76.45 kB / 0.5147 GB, free: 11.45 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.394e-05/0.3726, allocations: 23.98 kB / 0.5147 GB, free: 11.43 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.004144/0.3767, allocations: 3.511 MB / 0.5181 GB, free: 7.922 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3767, allocations: 0 / 0.5181 GB, free: 7.922 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001355/0.3781, allocations: 0.4956 MB / 0.5186 GB, free: 7.426 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.0006865/0.3788, allocations: 304.9 kB / 0.5189 GB, free: 7.219 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002127/0.3809, allocations: 0.9584 MB / 0.5199 GB, free: 6.246 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.962e-06/0.381, allocations: 4.141 kB / 0.5199 GB, free: 6.242 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001258/0.3822, allocations: 0.6193 MB / 0.5205 GB, free: 5.613 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001188/0.3834, allocations: 210.3 kB / 0.5207 GB, free: 5.406 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00957/0.393, allocations: 6.218 MB / 0.5267 GB, free: 15.13 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001598/0.3946, allocations: 1.836 MB / 0.5285 GB, free: 13.26 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001087/0.3957, allocations: 360.1 kB / 0.5289 GB, free: 12.9 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003674/0.3961, allocations: 127.4 kB / 0.529 GB, free: 12.77 MB / 346.7 MB Notification: Performance of SimCode: time 9.62e-07/0.3961, allocations: 0 / 0.529 GB, free: 12.77 MB / 346.7 MB Notification: Performance of Templates: time 0.04324/0.4394, allocations: 25.75 MB / 0.5541 GB, free: 3.086 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)