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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001372/0.001372, allocations: 104.5 kB / 16.56 MB, free: 6.723 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.001485/0.001486, 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.403/1.403, allocations: 222.9 MB / 241.2 MB, free: 15.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04911/0.04911, allocations: 8.089 MB / 299.4 MB, free: 6.965 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001224, allocations: 55.91 kB / 361.7 MB, free: 8.633 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2108/0.212, allocations: 51.52 MB / 413.2 MB, free: 25.85 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery): time 0.004314/0.2164, allocations: 4.687 MB / 417.9 MB, free: 21.14 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00193/0.2184, allocations: 1.417 MB / 419.3 MB, free: 19.71 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002755/0.2187, allocations: 12 kB / 419.3 MB, free: 19.7 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007918/0.2195, allocations: 480.5 kB / 419.8 MB, free: 19.23 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005791/0.2201, allocations: 386.3 kB / 420.2 MB, free: 18.86 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001461/0.2215, allocations: 1.028 MB / 421.2 MB, free: 17.82 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006331/0.2222, allocations: 0.8131 MB / 422 MB, free: 17.01 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003095/0.2225, allocations: 267.7 kB / 422.3 MB, free: 16.74 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002453/0.2227, allocations: 342.8 kB / 422.6 MB, free: 16.41 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000473/0.2232, allocations: 0.5646 MB / 423.2 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.843e-05/0.2233, allocations: 52 kB / 423.2 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000462/0.2238, allocations: 275.8 kB / 423.5 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002173/0.224, allocations: 398.8 kB / 423.9 MB, free: 15.13 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003426/0.2244, allocations: 0.563 MB / 424.4 MB, free: 14.56 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008101/0.2252, allocations: 1.322 MB / 425.8 MB, free: 13.24 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.2252, allocations: 4 kB / 425.8 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.52e-07/0.2252, allocations: 0 / 425.8 MB, free: 13.23 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.334e-05/0.2252, allocations: 4 kB / 425.8 MB, free: 13.23 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: 144 * Number of variables: 144 Notification: Performance of Generate backend data structure: time 0.004706/0.2299, allocations: 2.107 MB / 427.9 MB, free: 11.07 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.429e-05/0.23, allocations: 19.91 kB / 427.9 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001979/0.2302, allocations: 143.2 kB / 428 MB, free: 10.91 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001016/0.2312, allocations: 0.9938 MB / 429 MB, free: 9.859 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001023/0.2313, allocations: 190.4 kB / 429.2 MB, free: 9.645 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.245e-05/0.2314, allocations: 60.38 kB / 429.3 MB, free: 9.586 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001189/0.2326, allocations: 0.8634 MB / 430.1 MB, free: 8.691 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.422e-05/0.2326, allocations: 3.938 kB / 430.1 MB, free: 8.688 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.365e-05/0.2327, allocations: 27.98 kB / 430.2 MB, free: 8.66 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.073e-05/0.2327, allocations: 16 kB / 430.2 MB, free: 8.645 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001018/0.2338, allocations: 0.7197 MB / 430.9 MB, free: 7.926 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0044/0.2382, allocations: 4.061 MB / 435 MB, free: 3.574 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001705/0.2399, allocations: 1.286 MB / 436.3 MB, free: 2.223 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007593/0.2407, allocations: 0.5471 MB / 436.8 MB, free: 1.676 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.547e-05/0.2408, allocations: 20.97 kB / 436.8 MB, free: 1.652 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.845e-05/0.2408, allocations: 55.44 kB / 436.9 MB, free: 1.59 MB / 302.1 MB Notification: Performance of pre-optimization done (n=85): time 2.535e-06/0.2408, allocations: 0 / 436.9 MB, free: 1.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=85): time 0.01069/0.2515, allocations: 3.13 MB / 440 MB, free: 14.43 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001217/0.2517, allocations: 244.3 kB / 440.3 MB, free: 14.14 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002282/0.254, allocations: 1.813 MB / 442.1 MB, free: 12.31 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001227/0.2541, allocations: 41.7 kB / 442.1 MB, free: 12.26 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004156/0.2545, allocations: 493.8 kB / 442.6 MB, free: 11.77 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002598/0.2548, allocations: 283.8 kB / 442.9 MB, free: 11.49 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002543/0.2551, allocations: 146.6 kB / 443 MB, free: 11.34 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.2552, allocations: 341.9 kB / 443.3 MB, free: 11 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007701/0.256, allocations: 421.8 kB / 443.8 MB, free: 10.59 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008451/0.2568, allocations: 0.5345 MB / 444.3 MB, free: 10.02 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00913/0.266, allocations: 2.607 MB / 446.9 MB, free: 7.41 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.878e-06/0.266, allocations: 0 / 446.9 MB, free: 7.41 MB / 318.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.004394/0.2704, allocations: 1.706 MB / 448.6 MB, free: 5.691 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.272e-05/0.2704, allocations: 8 kB / 448.6 MB, free: 5.684 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.2705, allocations: 0 / 448.6 MB, free: 5.684 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002933/0.2734, allocations: 0.8205 MB / 449.4 MB, free: 4.859 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004547/0.2739, allocations: 115.9 kB / 449.5 MB, free: 4.746 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002562/0.2764, allocations: 1.48 MB / 451 MB, free: 3.242 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007483/0.2772, allocations: 87.34 kB / 451.1 MB, free: 3.156 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.73e-05/0.2773, allocations: 27.98 kB / 451.1 MB, free: 3.129 MB / 318.1 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.0007077/0.278, allocations: 448.3 kB / 451.6 MB, free: 2.684 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002174/0.2782, allocations: 118.5 kB / 451.7 MB, free: 2.566 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004213/0.2824, allocations: 1.764 MB / 453.5 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.218e-06/0.2825, allocations: 11.94 kB / 453.5 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.225e-06/0.2825, allocations: 7.984 kB / 453.5 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.916e-06/0.2825, allocations: 3.984 kB / 453.5 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006529/0.289, allocations: 3.386 MB / 456.9 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.734e-06/0.2891, allocations: 0 / 456.9 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000392/0.2895, allocations: 111.8 kB / 457 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002948/0.2924, allocations: 0.7773 MB / 457.7 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.114e-05/0.2925, allocations: 23.98 kB / 457.8 MB, free: 12.4 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002534/0.2951, allocations: 1.463 MB / 459.2 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.2951, allocations: 0 / 459.2 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005268/0.3004, allocations: 2.331 MB / 461.6 MB, free: 8.555 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005257/0.3009, allocations: 283.5 kB / 461.8 MB, free: 8.258 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000249/0.3012, allocations: 16 kB / 461.9 MB, free: 8.242 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006266/0.3018, allocations: 43.97 kB / 461.9 MB, free: 8.199 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001778/0.302, allocations: 64.89 kB / 462 MB, free: 8.137 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.345e-05/0.3021, allocations: 28 kB / 462 MB, free: 8.109 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001851/0.3039, allocations: 1.302 MB / 463.3 MB, free: 6.801 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3039, allocations: 3.938 kB / 463.3 MB, free: 6.797 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008211/0.3048, allocations: 251.7 kB / 463.5 MB, free: 6.551 MB / 334.1 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.0007258/0.3055, allocations: 293.9 kB / 463.8 MB, free: 6.336 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003744/0.3093, allocations: 1.347 MB / 465.2 MB, free: 4.988 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/0.3093, allocations: 0 / 465.2 MB, free: 4.988 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002653/0.3119, allocations: 0.8484 MB / 466 MB, free: 4.137 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001008/0.313, allocations: 107.8 kB / 466.1 MB, free: 4.031 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005281/0.3183, allocations: 3.04 MB / 469.2 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008662/0.3192, allocations: 1.174 MB / 470.3 MB, free: 15.76 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000298/0.3195, allocations: 83.41 kB / 470.4 MB, free: 15.68 MB / 350.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3195, allocations: 4 kB / 470.4 MB, free: 15.68 MB / 350.1 MB Notification: Performance of Templates: time 0.03033/0.3498, allocations: 19.7 MB / 490.1 MB, free: 11.97 MB / 366.1 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)