Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.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.LoadRescuedByBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery") translateModel(PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001773/0.001772, 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.481/1.481, allocations: 222.9 MB / 240.3 MB, free: 11 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.001001/0.001001, allocations: 101.7 kB / 290.6 MB, free: 10.94 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.05082/0.05082, allocations: 8.087 MB / 348.8 MB, free: 0.6992 MB / 282.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001037/0.001037, allocations: 47.67 kB / 411.1 MB, free: 57.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08944/0.09049, allocations: 51.53 MB / 462.6 MB, free: 6.066 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery): time 0.004782/0.09533, allocations: 4.697 MB / 467.3 MB, free: 1.344 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002/0.09736, allocations: 1.409 MB / 468.7 MB, free: 15.93 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002314/0.09762, allocations: 12 kB / 468.7 MB, free: 15.92 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008992/0.09857, allocations: 478.8 kB / 469.2 MB, free: 15.45 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006929/0.09927, allocations: 382.3 kB / 469.6 MB, free: 15.07 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001802/0.1011, allocations: 1.027 MB / 470.6 MB, free: 14.05 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008991/0.102, allocations: 0.8326 MB / 471.4 MB, free: 13.21 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000391/0.1024, allocations: 263.7 kB / 471.7 MB, free: 12.95 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003291/0.1027, allocations: 350.7 kB / 472 MB, free: 12.61 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006321/0.1034, allocations: 0.5529 MB / 472.6 MB, free: 12.05 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 9.41e-05/0.1035, allocations: 52 kB / 472.6 MB, free: 12 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005473/0.104, allocations: 291.7 kB / 472.9 MB, free: 11.71 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003003/0.1043, allocations: 394.8 kB / 473.3 MB, free: 11.33 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004667/0.1048, allocations: 0.563 MB / 473.9 MB, free: 10.76 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001545/0.1064, allocations: 1.624 MB / 475.5 MB, free: 9.133 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.1064, allocations: 0 / 475.5 MB, free: 9.133 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1064, allocations: 0 / 475.5 MB, free: 9.133 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.212e-05/0.1064, allocations: 0 / 475.5 MB, free: 9.133 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: 144 * Number of variables: 144 Notification: Performance of Generate backend data structure: time 0.005316/0.1117, allocations: 2.115 MB / 477.6 MB, free: 6.961 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.729e-05/0.1118, allocations: 8.031 kB / 477.6 MB, free: 6.953 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002161/0.112, allocations: 143.2 kB / 477.8 MB, free: 6.812 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001322/0.1133, allocations: 0.99 MB / 478.8 MB, free: 5.77 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00015/0.1135, allocations: 194.4 kB / 478.9 MB, free: 5.551 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.01e-05/0.1136, allocations: 60.38 kB / 479 MB, free: 5.492 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001334/0.1149, allocations: 0.8518 MB / 479.9 MB, free: 4.609 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.476e-05/0.115, allocations: 3.938 kB / 479.9 MB, free: 4.605 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.358e-05/0.115, allocations: 28 kB / 479.9 MB, free: 4.578 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.176e-05/0.1151, allocations: 12 kB / 479.9 MB, free: 4.566 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00118/0.1162, allocations: 0.7197 MB / 480.6 MB, free: 3.848 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.173/0.2893, allocations: 4.073 MB / 484.7 MB, free: 27.42 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0021/0.2914, allocations: 1.284 MB / 486 MB, free: 26.86 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009643/0.2924, allocations: 0.5448 MB / 486.5 MB, free: 26.63 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001001/0.2925, allocations: 21.98 kB / 486.5 MB, free: 26.63 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.164e-05/0.2926, allocations: 47.03 kB / 486.6 MB, free: 26.58 MB / 314.7 MB Notification: Performance of pre-optimization done (n=85): time 2.625e-06/0.2926, allocations: 5.281 kB / 486.6 MB, free: 26.58 MB / 314.7 MB Notification: Performance of matching and sorting (n=85): time 0.01157/0.3042, allocations: 3.138 MB / 489.7 MB, free: 25.71 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.453e-05/0.3043, allocations: 245.4 kB / 490 MB, free: 25.43 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002896/0.3072, allocations: 1.802 MB / 491.8 MB, free: 24.81 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002131/0.3074, allocations: 46.88 kB / 491.8 MB, free: 24.77 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005421/0.308, allocations: 498.2 kB / 492.3 MB, free: 24.44 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003166/0.3083, allocations: 286.4 kB / 492.6 MB, free: 24.24 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003545/0.3087, allocations: 146.4 kB / 492.7 MB, free: 24.17 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001159/0.3088, allocations: 334.9 kB / 493.1 MB, free: 23.86 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008404/0.3096, allocations: 425.9 kB / 493.5 MB, free: 23.68 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009187/0.3106, allocations: 0.5368 MB / 494 MB, free: 23.39 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009535/0.3201, allocations: 2.593 MB / 496.6 MB, free: 22.55 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.224e-06/0.3202, allocations: 0 / 496.6 MB, free: 22.55 MB / 314.7 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.004876/0.325, allocations: 1.71 MB / 498.3 MB, free: 21.85 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.284e-05/0.3251, allocations: 13.66 kB / 498.3 MB, free: 21.84 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.353e-05/0.3251, allocations: 0 / 498.3 MB, free: 21.84 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003327/0.3285, allocations: 0.8154 MB / 499.1 MB, free: 21.67 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005789/0.3291, allocations: 117.7 kB / 499.3 MB, free: 21.66 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002394/0.3315, allocations: 1.477 MB / 0.489 GB, free: 20.7 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008444/0.3323, allocations: 89.64 kB / 0.4891 GB, free: 20.65 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.75e-05/0.3324, allocations: 30.55 kB / 0.4891 GB, free: 20.64 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: 3 * Number of states: 0 () * Number of discrete variables: 1 (n.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 64 * 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 {(16,22)} Notification: Performance of prepare postOptimizeDAE: time 0.000647/0.3331, allocations: 450.4 kB / 0.4895 GB, free: 20.39 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002189/0.3333, allocations: 123.2 kB / 0.4897 GB, free: 20.32 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004187/0.3375, allocations: 1.756 MB / 0.4914 GB, free: 19.38 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-05/0.3375, allocations: 9.844 kB / 0.4914 GB, free: 19.38 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.626e-06/0.3375, allocations: 7.984 kB / 0.4914 GB, free: 19.37 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.036e-05/0.3376, allocations: 9.047 kB / 0.4914 GB, free: 19.36 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006802/0.3444, allocations: 3.383 MB / 0.4947 GB, free: 17.14 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.424e-06/0.3444, allocations: 0 / 0.4947 GB, free: 17.14 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003944/0.3448, allocations: 108.5 kB / 0.4948 GB, free: 17.11 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002704/0.3475, allocations: 0.7731 MB / 0.4956 GB, free: 16.76 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.011e-05/0.3477, allocations: 24.58 kB / 0.4956 GB, free: 16.74 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00226/0.3499, allocations: 1.455 MB / 0.497 GB, free: 15.72 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.58e-06/0.3499, allocations: 9.359 kB / 0.497 GB, free: 15.71 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03261/0.3826, allocations: 17.14 MB / 0.5137 GB, free: 14.31 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004629/0.3831, allocations: 275.5 kB / 0.514 GB, free: 14.02 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001399/0.3832, allocations: 20 kB / 0.514 GB, free: 14 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005886/0.3838, allocations: 49.27 kB / 0.5141 GB, free: 13.95 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001777/0.384, allocations: 68.89 kB / 0.5141 GB, free: 13.89 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.483e-05/0.3841, allocations: 35.86 kB / 0.5142 GB, free: 13.85 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001663/0.3857, allocations: 1.298 MB / 0.5154 GB, free: 12.55 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3858, allocations: 4 kB / 0.5154 GB, free: 12.54 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00117/0.3869, allocations: 399.2 kB / 0.5158 GB, free: 12.16 MB / 330.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: 1 (n.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 58 * 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 {(16,21)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007576/0.3877, allocations: 344.7 kB / 0.5162 GB, free: 11.93 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003819/0.3915, allocations: 1.343 MB / 0.5175 GB, free: 10.6 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.087e-06/0.3916, allocations: 4.062 kB / 0.5175 GB, free: 10.6 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002685/0.3943, allocations: 0.8456 MB / 0.5183 GB, free: 9.754 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000923/0.3952, allocations: 108.6 kB / 0.5184 GB, free: 9.645 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007755/0.403, allocations: 4.054 MB / 0.5224 GB, free: 5.555 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009224/0.4039, allocations: 1.212 MB / 0.5235 GB, free: 4.316 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005567/0.4045, allocations: 171.2 kB / 0.5237 GB, free: 4.145 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002042/0.4047, allocations: 75.42 kB / 0.5238 GB, free: 4.07 MB / 330.7 MB Notification: Performance of SimCode: time 6.91e-07/0.4047, allocations: 0 / 0.5238 GB, free: 4.07 MB / 330.7 MB Notification: Performance of Templates: time 0.03544/0.4402, allocations: 21.49 MB / 0.5448 GB, free: 14.64 MB / 362.7 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.makefile (rm -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.sim & ./PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe 2>&1)