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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/PowerSysPro 2.3.1-master/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001125/0.001125, allocations: 107.3 kB / 16.57 MB, free: 6.73 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001186/0.001186, allocations: 193.9 kB / 17.48 MB, free: 6.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.408/1.408, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04639/0.04639, allocations: 8.085 MB / 299.4 MB, free: 6.957 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001315/0.001316, allocations: 59.91 kB / 361.7 MB, free: 8.625 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2126/0.2139, allocations: 51.53 MB / 413.2 MB, free: 25.84 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.ChargingBatteries): time 0.00458/0.2186, allocations: 4.784 MB / 418 MB, free: 21.04 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002415/0.221, allocations: 1.6 MB / 419.6 MB, free: 19.43 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006919/0.2217, allocations: 12 kB / 419.6 MB, free: 19.42 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001271/0.223, allocations: 0.7188 MB / 420.3 MB, free: 18.7 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001125/0.2242, allocations: 0.6112 MB / 420.9 MB, free: 18.09 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001727/0.226, allocations: 1.098 MB / 422 MB, free: 16.99 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001069/0.227, allocations: 1.207 MB / 423.2 MB, free: 15.78 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003915/0.2274, allocations: 354 kB / 423.6 MB, free: 15.42 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003699/0.2278, allocations: 0.5061 MB / 424.1 MB, free: 14.91 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006275/0.2284, allocations: 0.8881 MB / 425 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001178/0.2286, allocations: 72 kB / 425.1 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005976/0.2292, allocations: 295.8 kB / 425.3 MB, free: 13.66 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004433/0.2296, allocations: 0.9231 MB / 426.3 MB, free: 12.73 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006151/0.2303, allocations: 1.094 MB / 427.4 MB, free: 11.63 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001531/0.2318, allocations: 2.733 MB / 430.1 MB, free: 8.895 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.2318, allocations: 0 / 430.1 MB, free: 8.895 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.82e-07/0.2318, allocations: 0 / 430.1 MB, free: 8.895 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.393e-05/0.2319, allocations: 0 / 430.1 MB, free: 8.895 MB / 302.1 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.006179/0.238, allocations: 3.399 MB / 433.5 MB, free: 5.422 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.272e-05/0.2381, allocations: 15.95 kB / 433.5 MB, free: 5.406 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003729/0.2385, allocations: 293.3 kB / 433.8 MB, free: 5.117 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00237/0.2409, allocations: 2.187 MB / 436 MB, free: 2.871 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001462/0.241, allocations: 220.1 kB / 436.2 MB, free: 2.617 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.902e-05/0.2411, allocations: 64.38 kB / 436.3 MB, free: 2.555 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001527/0.2426, allocations: 1 MB / 437.3 MB, free: 1.48 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.518e-05/0.2427, allocations: 3.938 kB / 437.3 MB, free: 1.477 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.208e-05/0.2428, allocations: 28 kB / 437.3 MB, free: 1.449 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.126e-05/0.2428, allocations: 16 kB / 437.3 MB, free: 1.434 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001201/0.244, allocations: 0.6884 MB / 438 MB, free: 0.7461 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007821/0.2518, allocations: 4.839 MB / 442.8 MB, free: 11.76 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002324/0.2542, allocations: 1.374 MB / 444.2 MB, free: 10.27 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001018/0.2552, allocations: 0.5179 MB / 444.7 MB, free: 9.75 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001713/0.2554, allocations: 93.66 kB / 444.8 MB, free: 9.641 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.838e-05/0.2555, allocations: 51.05 kB / 444.9 MB, free: 9.582 MB / 318.1 MB Notification: Performance of pre-optimization done (n=64): time 2.725e-06/0.2555, allocations: 0 / 444.9 MB, free: 9.582 MB / 318.1 MB Notification: Performance of matching and sorting (n=64): time 0.004741/0.2602, allocations: 1.661 MB / 446.5 MB, free: 7.895 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002659/0.2605, allocations: 0.5935 MB / 447.1 MB, free: 7.16 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006918/0.2674, allocations: 4.877 MB / 452 MB, free: 2.27 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001943/0.2677, allocations: 41.7 kB / 452 MB, free: 2.223 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001047/0.2687, allocations: 1.135 MB / 453.2 MB, free: 1.082 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002389/0.269, allocations: 220.8 kB / 453.4 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002262/0.2692, allocations: 122.2 kB / 453.5 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001319/0.2694, allocations: 333.9 kB / 453.8 MB, free: 412 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007365/0.2701, allocations: 313.2 kB / 454.1 MB, free: 100 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008851/0.271, allocations: 0.5545 MB / 454.7 MB, free: 15.45 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005713/0.2767, allocations: 1.669 MB / 456.4 MB, free: 13.76 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.91e-06/0.2768, allocations: 0 / 456.4 MB, free: 13.76 MB / 334.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.003389/0.2802, allocations: 1.244 MB / 457.6 MB, free: 12.5 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.221e-05/0.2802, allocations: 4 kB / 457.6 MB, free: 12.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/0.2802, allocations: 0 / 457.6 MB, free: 12.5 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001128/0.2814, allocations: 256.6 kB / 457.9 MB, free: 12.25 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006843/0.2821, allocations: 171.8 kB / 458 MB, free: 12.08 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003433/0.2855, allocations: 2.483 MB / 460.5 MB, free: 9.465 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00134/0.2869, allocations: 111.4 kB / 460.6 MB, free: 9.355 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.115e-05/0.2869, allocations: 27.98 kB / 460.7 MB, free: 9.328 MB / 334.1 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.001502/0.2885, allocations: 0.9311 MB / 461.6 MB, free: 8.391 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006257/0.2891, allocations: 272.7 kB / 461.9 MB, free: 8.121 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003042/0.2921, allocations: 1.26 MB / 463.1 MB, free: 6.844 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.039e-05/0.2922, allocations: 12 kB / 463.1 MB, free: 6.832 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.986e-06/0.2922, allocations: 0 / 463.1 MB, free: 6.832 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.733e-06/0.2922, allocations: 3.984 kB / 463.1 MB, free: 6.828 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006075/0.2983, allocations: 3.384 MB / 466.5 MB, free: 3.367 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/0.2983, allocations: 0 / 466.5 MB, free: 3.367 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006326/0.2989, allocations: 139.8 kB / 466.6 MB, free: 3.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00109/0.3, allocations: 264.6 kB / 466.9 MB, free: 2.969 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.347e-05/0.3001, allocations: 12 kB / 466.9 MB, free: 2.957 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003053/0.3031, allocations: 2.44 MB / 469.4 MB, free: 384 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.616e-06/0.3032, allocations: 4 kB / 469.4 MB, free: 380 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003795/0.307, allocations: 1.69 MB / 471.1 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001083/0.3081, allocations: 0.5288 MB / 471.6 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002637/0.3083, allocations: 19.94 kB / 471.6 MB, free: 14.08 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007795/0.3091, allocations: 83.92 kB / 471.7 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002053/0.3093, allocations: 76.44 kB / 471.8 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.331e-05/0.3094, allocations: 16 kB / 471.8 MB, free: 13.91 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.004696/0.3141, allocations: 3.519 MB / 475.3 MB, free: 10.39 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.3141, allocations: 0 / 475.3 MB, free: 10.39 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001255/0.3154, allocations: 355.5 kB / 475.6 MB, free: 10.04 MB / 350.1 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.0006885/0.3161, allocations: 302.2 kB / 475.9 MB, free: 9.82 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002202/0.3183, allocations: 0.9632 MB / 476.9 MB, free: 8.844 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.323e-06/0.3183, allocations: 4.234 kB / 476.9 MB, free: 8.84 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001234/0.3196, allocations: 0.6115 MB / 477.5 MB, free: 8.215 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0014/0.321, allocations: 210.3 kB / 477.7 MB, free: 8.008 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009366/0.3303, allocations: 6.035 MB / 483.8 MB, free: 1.922 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001525/0.3319, allocations: 1.813 MB / 485.6 MB, free: 76 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006961/0.3326, allocations: 131.5 kB / 485.7 MB, free: 15.94 MB / 366.1 MB Notification: Performance of SimCode: time 7.91e-07/0.3326, allocations: 0 / 485.7 MB, free: 15.94 MB / 366.1 MB Notification: Performance of Templates: time 0.2127/0.5454, allocations: 38.61 MB / 0.512 GB, free: 90.33 MB / 382.1 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)