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.001387/0.001387, allocations: 113.1 kB / 17.09 MB, free: 5.777 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.001529/0.001529, allocations: 195 kB / 18.02 MB, free: 4.953 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.343/1.343, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05245/0.05245, allocations: 8.095 MB / 300 MB, free: 6.684 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00126/0.00126, allocations: 63.91 kB / 363.2 MB, free: 7.434 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2047/0.206, allocations: 51.52 MB / 414.7 MB, free: 25.47 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery): time 0.004431/0.2105, allocations: 4.685 MB / 419.4 MB, free: 20.77 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001795/0.2123, allocations: 1.44 MB / 420.8 MB, free: 19.32 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002042/0.2125, allocations: 12 kB / 420.8 MB, free: 19.31 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006754/0.2132, allocations: 0.4921 MB / 421.3 MB, free: 18.82 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000546/0.2138, allocations: 425.8 kB / 421.7 MB, free: 18.4 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001412/0.2152, allocations: 1.066 MB / 422.8 MB, free: 17.33 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006209/0.2158, allocations: 0.8521 MB / 423.7 MB, free: 16.48 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003274/0.2162, allocations: 318.8 kB / 424 MB, free: 16.16 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002434/0.2164, allocations: 390.7 kB / 424.4 MB, free: 15.78 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004895/0.2169, allocations: 0.5646 MB / 424.9 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.591e-05/0.217, allocations: 83.94 kB / 425 MB, free: 15.13 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004111/0.2174, allocations: 315.7 kB / 425.3 MB, free: 14.82 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002239/0.2176, allocations: 414.8 kB / 425.7 MB, free: 14.42 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003482/0.218, allocations: 0.6137 MB / 426.3 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001129/0.2191, allocations: 1.671 MB / 428 MB, free: 12.13 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.2192, allocations: 4 kB / 428 MB, free: 12.12 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2192, allocations: 0 / 428 MB, free: 12.12 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.444e-05/0.2192, allocations: 0 / 428 MB, free: 12.12 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.004721/0.2239, allocations: 2.111 MB / 430.1 MB, free: 9.953 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.285e-05/0.224, allocations: 11.89 kB / 430.1 MB, free: 9.941 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001856/0.2241, allocations: 143.2 kB / 430.3 MB, free: 9.801 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001075/0.2252, allocations: 0.9938 MB / 431.3 MB, free: 8.754 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001007/0.2253, allocations: 194.4 kB / 431.5 MB, free: 8.535 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.426e-05/0.2254, allocations: 60.31 kB / 431.5 MB, free: 8.477 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001105/0.2265, allocations: 0.8518 MB / 432.4 MB, free: 7.594 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.471e-05/0.2266, allocations: 3.938 kB / 432.4 MB, free: 7.59 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.033e-05/0.2266, allocations: 28 kB / 432.4 MB, free: 7.562 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.739e-06/0.2267, allocations: 16 kB / 432.4 MB, free: 7.547 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001022/0.2277, allocations: 0.7235 MB / 433.1 MB, free: 6.824 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004302/0.232, allocations: 4.054 MB / 437.2 MB, free: 2.48 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001633/0.2336, allocations: 1.286 MB / 438.5 MB, free: 1.133 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007556/0.2344, allocations: 0.5544 MB / 439 MB, free: 0.5742 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.803e-05/0.2345, allocations: 16.97 kB / 439 MB, free: 0.5547 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.862e-05/0.2346, allocations: 55.44 kB / 439.1 MB, free: 0.4922 MB / 302.1 MB Notification: Performance of pre-optimization done (n=85): time 2.394e-06/0.2346, allocations: 0 / 439.1 MB, free: 0.4922 MB / 302.1 MB Notification: Performance of matching and sorting (n=85): time 0.01067/0.2452, allocations: 3.126 MB / 442.2 MB, free: 13.34 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001154/0.2454, allocations: 244.3 kB / 442.5 MB, free: 13.04 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002375/0.2478, allocations: 1.809 MB / 444.3 MB, free: 11.21 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.949e-05/0.2479, allocations: 45.7 kB / 444.3 MB, free: 11.16 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004057/0.2483, allocations: 0.4899 MB / 444.8 MB, free: 10.67 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002308/0.2485, allocations: 279.8 kB / 445.1 MB, free: 10.39 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002558/0.2488, allocations: 150.6 kB / 445.2 MB, free: 10.24 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001162/0.2489, allocations: 337.9 kB / 445.6 MB, free: 9.906 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007241/0.2497, allocations: 417.8 kB / 446 MB, free: 9.5 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008159/0.2505, allocations: 0.5462 MB / 446.5 MB, free: 8.922 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008881/0.2594, allocations: 2.588 MB / 449.1 MB, free: 6.328 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.2594, allocations: 4 kB / 449.1 MB, free: 6.324 MB / 318.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.00437/0.2638, allocations: 1.706 MB / 450.8 MB, free: 4.602 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.667e-05/0.2639, allocations: 8 kB / 450.8 MB, free: 4.594 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.726e-06/0.2639, allocations: 0 / 450.8 MB, free: 4.594 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002845/0.2667, allocations: 0.8203 MB / 451.6 MB, free: 3.77 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004546/0.2672, allocations: 119.8 kB / 451.8 MB, free: 3.652 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002597/0.2698, allocations: 1.467 MB / 453.2 MB, free: 2.16 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007831/0.2706, allocations: 87.33 kB / 453.3 MB, free: 2.074 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.039e-05/0.2707, allocations: 36 kB / 453.3 MB, free: 2.039 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.0007455/0.2715, allocations: 445.6 kB / 453.8 MB, free: 1.594 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002212/0.2717, allocations: 118.5 kB / 453.9 MB, free: 1.477 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004327/0.276, allocations: 1.764 MB / 455.7 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-05/0.2761, allocations: 15.94 kB / 455.7 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-06/0.2761, allocations: 0 / 455.7 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.709e-06/0.2761, allocations: 3.984 kB / 455.7 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006409/0.2825, allocations: 3.38 MB / 459.1 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.626e-06/0.2825, allocations: 11.94 kB / 459.1 MB, free: 12.22 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00038/0.2829, allocations: 107.8 kB / 459.2 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002679/0.2856, allocations: 0.781 MB / 460 MB, free: 11.33 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.064e-05/0.2857, allocations: 19.98 kB / 460 MB, free: 11.31 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00251/0.2882, allocations: 1.455 MB / 461.4 MB, free: 9.828 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.891e-06/0.2882, allocations: 4 kB / 461.4 MB, free: 9.824 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004919/0.2932, allocations: 2.337 MB / 463.8 MB, free: 7.465 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006798/0.2939, allocations: 283.3 kB / 464 MB, free: 7.168 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001489/0.294, allocations: 16 kB / 464.1 MB, free: 7.152 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005531/0.2946, allocations: 43.97 kB / 464.1 MB, free: 7.109 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001795/0.2948, allocations: 72.95 kB / 464.2 MB, free: 7.039 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.567e-05/0.2948, allocations: 28 kB / 464.2 MB, free: 7.012 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001879/0.2967, allocations: 1.298 MB / 465.5 MB, free: 5.707 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.2968, allocations: 0 / 465.5 MB, free: 5.707 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008686/0.2976, allocations: 255.7 kB / 465.8 MB, free: 5.457 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.0007762/0.2984, allocations: 291.2 kB / 466 MB, free: 5.246 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003967/0.3024, allocations: 1.37 MB / 467.4 MB, free: 3.875 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 8.055e-06/0.3024, allocations: 4.125 kB / 467.4 MB, free: 3.871 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002652/0.3051, allocations: 0.8522 MB / 468.3 MB, free: 3.016 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001081/0.3062, allocations: 107.5 kB / 468.4 MB, free: 2.91 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004948/0.3111, allocations: 2.562 MB / 470.9 MB, free: 332 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007956/0.312, allocations: 1.181 MB / 472.1 MB, free: 15.11 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004892/0.3125, allocations: 171.2 kB / 472.3 MB, free: 14.94 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002088/0.3127, allocations: 71.42 kB / 472.3 MB, free: 14.88 MB / 350.1 MB Notification: Performance of SimCode: time 2.024e-06/0.3127, allocations: 0 / 472.3 MB, free: 14.88 MB / 350.1 MB Notification: Performance of Templates: time 0.02837/0.3411, allocations: 16.58 MB / 488.9 MB, free: 14.33 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 -s cvode -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe 2>&1)