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/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 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.001244/0.001244, allocations: 105.1 kB / 16.31 MB, free: 5.879 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.001326/0.001326, allocations: 187.5 kB / 17.24 MB, free: 5.539 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.424/1.424, allocations: 222.9 MB / 240.9 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.05229/0.05229, allocations: 8.094 MB / 299.2 MB, free: 6.699 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 63.89 kB / 361.7 MB, free: 8.109 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2379/0.2392, allocations: 51.52 MB / 413.3 MB, free: 25.57 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery): time 0.004456/0.2437, allocations: 4.672 MB / 417.9 MB, free: 20.88 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001735/0.2455, allocations: 1.444 MB / 419.4 MB, free: 19.43 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002074/0.2457, allocations: 8 kB / 419.4 MB, free: 19.42 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007264/0.2464, allocations: 0.5038 MB / 419.9 MB, free: 18.92 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005806/0.247, allocations: 417.8 kB / 420.3 MB, free: 18.51 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00149/0.2485, allocations: 1.07 MB / 421.4 MB, free: 17.43 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000768/0.2493, allocations: 0.8443 MB / 422.2 MB, free: 16.59 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003847/0.2497, allocations: 318.8 kB / 422.5 MB, free: 16.27 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002847/0.25, allocations: 374.8 kB / 422.9 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005225/0.2505, allocations: 0.5685 MB / 423.5 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.884e-05/0.2506, allocations: 80 kB / 423.5 MB, free: 15.26 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005201/0.2512, allocations: 315.7 kB / 423.8 MB, free: 14.95 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002464/0.2514, allocations: 422.8 kB / 424.3 MB, free: 14.54 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003612/0.2518, allocations: 0.6098 MB / 424.9 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001102/0.2529, allocations: 1.655 MB / 426.5 MB, free: 12.26 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.2529, allocations: 0 / 426.5 MB, free: 12.26 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2529, allocations: 0 / 426.5 MB, free: 12.26 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.085e-05/0.2529, allocations: 0 / 426.5 MB, free: 12.26 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.004768/0.2577, allocations: 2.111 MB / 428.6 MB, free: 10.09 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.2578, allocations: 8.031 kB / 428.6 MB, free: 10.08 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001972/0.258, allocations: 147.2 kB / 428.8 MB, free: 9.938 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001044/0.259, allocations: 0.9861 MB / 429.8 MB, free: 8.898 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001008/0.2591, allocations: 198.4 kB / 430 MB, free: 8.676 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.301e-05/0.2592, allocations: 60.38 kB / 430 MB, free: 8.617 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001146/0.2604, allocations: 0.8557 MB / 430.9 MB, free: 7.73 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.552e-05/0.2604, allocations: 3.938 kB / 430.9 MB, free: 7.727 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.331e-05/0.2605, allocations: 24 kB / 430.9 MB, free: 7.703 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.017e-05/0.2605, allocations: 12 kB / 430.9 MB, free: 7.691 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001024/0.2615, allocations: 0.7274 MB / 431.6 MB, free: 6.965 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004317/0.2658, allocations: 4.065 MB / 435.7 MB, free: 2.609 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001681/0.2675, allocations: 1.286 MB / 437 MB, free: 1.262 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007299/0.2683, allocations: 0.5544 MB / 437.5 MB, free: 0.7031 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.519e-05/0.2684, allocations: 24.97 kB / 437.6 MB, free: 0.6758 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.586e-05/0.2684, allocations: 51.44 kB / 437.6 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of pre-optimization done (n=85): time 2.414e-06/0.2684, allocations: 0 / 437.6 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of matching and sorting (n=85): time 0.01118/0.2796, allocations: 3.13 MB / 440.8 MB, free: 13.46 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001699/0.2798, allocations: 240.3 kB / 441 MB, free: 13.16 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002582/0.2824, allocations: 1.809 MB / 442.8 MB, free: 11.34 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.889e-05/0.2825, allocations: 49.69 kB / 442.8 MB, free: 11.29 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004081/0.2829, allocations: 489.7 kB / 443.3 MB, free: 10.8 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002528/0.2832, allocations: 291.8 kB / 443.6 MB, free: 10.52 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000247/0.2835, allocations: 146.6 kB / 443.8 MB, free: 10.37 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001548/0.2836, allocations: 338 kB / 444.1 MB, free: 10.03 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007685/0.2844, allocations: 429.8 kB / 444.5 MB, free: 9.613 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008708/0.2853, allocations: 0.5346 MB / 445 MB, free: 9.047 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009117/0.2944, allocations: 2.611 MB / 447.6 MB, free: 6.426 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.139e-06/0.2945, allocations: 3.938 kB / 447.7 MB, free: 6.422 MB / 318.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.004403/0.2989, allocations: 1.706 MB / 449.4 MB, free: 4.703 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.301e-05/0.2989, allocations: 4 kB / 449.4 MB, free: 4.699 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.113e-05/0.2989, allocations: 4 kB / 449.4 MB, free: 4.695 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002825/0.3018, allocations: 0.8167 MB / 450.2 MB, free: 3.875 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004678/0.3023, allocations: 123.8 kB / 450.3 MB, free: 3.754 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002751/0.305, allocations: 1.475 MB / 451.8 MB, free: 2.254 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008906/0.3059, allocations: 87.33 kB / 451.9 MB, free: 2.168 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.56e-05/0.306, allocations: 27.98 kB / 451.9 MB, free: 2.141 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.0008643/0.3069, allocations: 445.6 kB / 452.3 MB, free: 1.695 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003928/0.3073, allocations: 118.5 kB / 452.4 MB, free: 1.578 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004952/0.3122, allocations: 1.768 MB / 454.2 MB, free: 15.79 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.47e-05/0.3123, allocations: 8 kB / 454.2 MB, free: 15.79 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.578e-06/0.3123, allocations: 0 / 454.2 MB, free: 15.79 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.388e-05/0.3123, allocations: 3.984 kB / 454.2 MB, free: 15.78 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007536/0.3199, allocations: 3.386 MB / 457.6 MB, free: 12.34 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.347e-06/0.3199, allocations: 0 / 457.6 MB, free: 12.34 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003973/0.3203, allocations: 107.8 kB / 457.7 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003036/0.3234, allocations: 0.7812 MB / 458.5 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.603e-05/0.3235, allocations: 23.98 kB / 458.5 MB, free: 11.42 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002668/0.3261, allocations: 1.455 MB / 460 MB, free: 9.938 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.3262, allocations: 3.938 kB / 460 MB, free: 9.934 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005625/0.3318, allocations: 2.339 MB / 462.3 MB, free: 7.57 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006937/0.3325, allocations: 283.4 kB / 462.6 MB, free: 7.273 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003066/0.3328, allocations: 16 kB / 462.6 MB, free: 7.258 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006948/0.3335, allocations: 56.02 kB / 462.7 MB, free: 7.203 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001748/0.3337, allocations: 64.91 kB / 462.7 MB, free: 7.141 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.08e-05/0.3338, allocations: 20 kB / 462.7 MB, free: 7.121 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.002074/0.3359, allocations: 1.31 MB / 464.1 MB, free: 5.805 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3359, allocations: 0 / 464.1 MB, free: 5.805 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008002/0.3367, allocations: 243.7 kB / 464.3 MB, free: 5.566 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.0007803/0.3375, allocations: 298 kB / 464.6 MB, free: 5.348 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.004151/0.3416, allocations: 1.398 MB / 466 MB, free: 3.949 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.669e-06/0.3417, allocations: 3.938 kB / 466 MB, free: 3.945 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002772/0.3444, allocations: 0.8484 MB / 466.8 MB, free: 3.094 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008637/0.3453, allocations: 116.5 kB / 466.9 MB, free: 2.977 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004797/0.3501, allocations: 2.577 MB / 469.5 MB, free: 384 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007988/0.3509, allocations: 1.177 MB / 470.7 MB, free: 15.17 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004195/0.3514, allocations: 171.2 kB / 470.9 MB, free: 15 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001899/0.3516, allocations: 79.41 kB / 470.9 MB, free: 14.92 MB / 350.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3516, allocations: 0 / 470.9 MB, free: 14.92 MB / 350.1 MB Notification: Performance of Templates: time 0.02654/0.3781, allocations: 16.58 MB / 487.5 MB, free: 14.38 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)