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.001036/0.001036, allocations: 87.73 kB / 16.71 MB, free: 6.145 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.001339/0.001339, allocations: 178.9 kB / 17.62 MB, free: 5.855 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.44/1.44, allocations: 223.3 MB / 241.7 MB, free: 14.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.03891/0.03891, allocations: 8.1 MB / 300.9 MB, free: 6.508 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.000316/0.0003163, allocations: 8 kB / 364.2 MB, free: 7.195 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2165/0.2169, allocations: 52.51 MB / 416.7 MB, free: 24.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.ChargingBatteries): time 0.003666/0.2206, allocations: 4.362 MB / 421 MB, free: 20.58 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002156/0.2228, allocations: 1.569 MB / 422.6 MB, free: 19 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003654/0.2232, allocations: 12 kB / 422.6 MB, free: 18.99 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009342/0.2241, allocations: 0.7189 MB / 423.3 MB, free: 18.27 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008088/0.2249, allocations: 0.6073 MB / 423.9 MB, free: 17.66 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001699/0.2266, allocations: 1.075 MB / 425 MB, free: 16.59 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001136/0.2278, allocations: 1.214 MB / 426.2 MB, free: 15.37 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004067/0.2282, allocations: 342 kB / 426.6 MB, free: 15.02 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004304/0.2287, allocations: 494.2 kB / 427 MB, free: 14.54 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006838/0.2293, allocations: 0.8491 MB / 427.9 MB, free: 13.68 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.922e-05/0.2295, allocations: 55.94 kB / 427.9 MB, free: 13.63 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000572/0.23, allocations: 275.8 kB / 428.2 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004418/0.2305, allocations: 0.9075 MB / 429.1 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006269/0.2311, allocations: 1.092 MB / 430.2 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001616/0.2328, allocations: 2.65 MB / 432.9 MB, free: 8.688 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.2328, allocations: 0 / 432.9 MB, free: 8.688 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.2328, allocations: 4 kB / 432.9 MB, free: 8.684 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.62e-05/0.2328, allocations: 0 / 432.9 MB, free: 8.684 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.005791/0.2386, allocations: 2.953 MB / 435.8 MB, free: 5.66 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/0.2387, allocations: 11.97 kB / 435.8 MB, free: 5.648 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005239/0.2392, allocations: 293.3 kB / 436.1 MB, free: 5.359 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002729/0.242, allocations: 2.179 MB / 438.3 MB, free: 3.121 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001443/0.2421, allocations: 232.1 kB / 438.5 MB, free: 2.855 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001017/0.2422, allocations: 60.38 kB / 438.6 MB, free: 2.797 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001654/0.2439, allocations: 1.032 MB / 439.6 MB, free: 1.691 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.783e-05/0.2439, allocations: 0 / 439.6 MB, free: 1.691 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.075e-05/0.244, allocations: 32 kB / 439.7 MB, free: 1.66 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.287e-05/0.244, allocations: 16 kB / 439.7 MB, free: 1.645 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001315/0.2454, allocations: 0.7196 MB / 440.4 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008468/0.2538, allocations: 4.901 MB / 445.3 MB, free: 11.88 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002589/0.2565, allocations: 1.434 MB / 446.7 MB, free: 10.32 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001163/0.2577, allocations: 0.5374 MB / 447.3 MB, free: 9.785 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001704/0.2578, allocations: 97.66 kB / 447.4 MB, free: 9.672 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.224e-05/0.2579, allocations: 51.06 kB / 447.4 MB, free: 9.613 MB / 318.1 MB Notification: Performance of pre-optimization done (n=64): time 4.038e-06/0.2579, allocations: 0 / 447.4 MB, free: 9.613 MB / 318.1 MB Notification: Performance of matching and sorting (n=64): time 0.005315/0.2632, allocations: 1.723 MB / 449.1 MB, free: 7.863 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003007/0.2636, allocations: 0.5935 MB / 449.7 MB, free: 7.129 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008056/0.2716, allocations: 4.881 MB / 454.6 MB, free: 2.234 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002339/0.2719, allocations: 41.7 kB / 454.6 MB, free: 2.188 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001221/0.2732, allocations: 1.131 MB / 455.8 MB, free: 1.051 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002821/0.2734, allocations: 216.8 kB / 456 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001069/0.2736, allocations: 61.69 kB / 456 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001355/0.2737, allocations: 329.9 kB / 456.4 MB, free: 452 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008618/0.2746, allocations: 345.2 kB / 456.7 MB, free: 104 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001016/0.2756, allocations: 0.5662 MB / 457.3 MB, free: 15.45 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006698/0.2823, allocations: 1.771 MB / 459 MB, free: 13.65 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.2824, allocations: 0 / 459 MB, free: 13.65 MB / 334.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.003793/0.2862, allocations: 1.283 MB / 460.3 MB, free: 12.35 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.949e-05/0.2862, allocations: 11.98 kB / 460.3 MB, free: 12.34 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/0.2862, allocations: 0 / 460.3 MB, free: 12.34 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001233/0.2875, allocations: 256.6 kB / 460.6 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000797/0.2883, allocations: 179.8 kB / 460.8 MB, free: 11.91 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003985/0.2923, allocations: 2.482 MB / 463.2 MB, free: 9.297 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001469/0.2938, allocations: 127.4 kB / 463.4 MB, free: 9.172 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.963e-05/0.2939, allocations: 28 kB / 463.4 MB, free: 9.145 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.001676/0.2956, allocations: 0.9291 MB / 464.3 MB, free: 8.207 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006323/0.2962, allocations: 268.5 kB / 464.6 MB, free: 7.941 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003542/0.2997, allocations: 1.307 MB / 465.9 MB, free: 6.617 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.998e-06/0.2998, allocations: 8 kB / 465.9 MB, free: 6.609 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.2998, allocations: 4 kB / 465.9 MB, free: 6.605 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.728e-06/0.2998, allocations: 3.984 kB / 465.9 MB, free: 6.602 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006989/0.3068, allocations: 3.431 MB / 469.3 MB, free: 3.094 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.422e-06/0.3069, allocations: 0 / 469.3 MB, free: 3.094 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006786/0.3075, allocations: 159.9 kB / 469.5 MB, free: 2.938 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00114/0.3087, allocations: 260.5 kB / 469.8 MB, free: 2.68 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.51e-05/0.3087, allocations: 15.98 kB / 469.8 MB, free: 2.664 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003262/0.312, allocations: 2.444 MB / 472.2 MB, free: 84 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.3121, allocations: 0 / 472.2 MB, free: 84 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004368/0.3164, allocations: 1.753 MB / 474 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001245/0.3177, allocations: 0.5288 MB / 474.5 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003407/0.3181, allocations: 24 kB / 474.5 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008928/0.319, allocations: 115.8 kB / 474.6 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002297/0.3192, allocations: 76.45 kB / 474.7 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.612e-05/0.3193, allocations: 16 kB / 474.7 MB, free: 13.52 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.005483/0.3247, allocations: 3.515 MB / 478.2 MB, free: 10.01 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.81e-07/0.3248, allocations: 0 / 478.2 MB, free: 10.01 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001649/0.3264, allocations: 363.4 kB / 478.6 MB, free: 9.652 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.0007556/0.3272, allocations: 293.6 kB / 478.9 MB, free: 9.441 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002526/0.3298, allocations: 1.01 MB / 479.9 MB, free: 8.414 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.063e-05/0.3298, allocations: 4.234 kB / 479.9 MB, free: 8.41 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001546/0.3314, allocations: 0.6311 MB / 480.5 MB, free: 7.766 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002106/0.3335, allocations: 206.3 kB / 480.7 MB, free: 7.562 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01074/0.3443, allocations: 6.063 MB / 486.8 MB, free: 1.449 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001721/0.346, allocations: 1.813 MB / 488.6 MB, free: 15.6 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00062/0.3467, allocations: 131.4 kB / 488.7 MB, free: 15.47 MB / 366.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3467, allocations: 0 / 488.7 MB, free: 15.47 MB / 366.1 MB Notification: Performance of Templates: time 0.2262/0.5729, allocations: 38.35 MB / 0.5147 GB, free: 90.04 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)