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: "" <> buildModelFMU(PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_UsingBatteries_LoadRescuedByBattery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_UsingBatteries_LoadRescuedByBattery",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001018/0.001018, allocations: 187.8 kB / 7.847 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.178/1.178, allocations: 221.4 MB / 229.7 MB, free: 3.09 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008844/0.0008844, allocations: 98.33 kB / 280.5 MB, free: 48 kB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.03602/0.03602, allocations: 8.099 MB / 339.4 MB, free: 5.117 MB / 282.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.1847/0.2208, allocations: 58.63 MB / 398 MB, free: 66.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08155/0.3023, allocations: 52.51 MB / 450.5 MB, free: 14.03 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2558/0.5582, allocations: 84.77 MB / 0.5227 GB, free: 6.973 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002107/0.5584, allocations: 67.16 kB / 0.5228 GB, free: 6.941 MB / 346.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.06267/0.6211, allocations: 24.46 MB / 0.5467 GB, free: 3.219 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.137e-05/0.6212, allocations: 11.94 kB / 0.5467 GB, free: 3.207 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000432/0.6216, allocations: 150.3 kB / 0.5468 GB, free: 3.059 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001726/0.6233, allocations: 0.9693 MB / 0.5478 GB, free: 2.246 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000154/0.6235, allocations: 173.3 kB / 0.548 GB, free: 2.051 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001061/0.6236, allocations: 32 kB / 0.548 GB, free: 2.02 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001066/0.6247, allocations: 0.6472 MB / 0.5486 GB, free: 1.652 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001147/0.6258, allocations: 0.7338 MB / 0.5493 GB, free: 1.129 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.712e-05/0.6259, allocations: 0 / 0.5493 GB, free: 1.129 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.803e-05/0.626, allocations: 0 / 0.5493 GB, free: 1.129 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.639e-05/0.626, allocations: 16 kB / 0.5493 GB, free: 1.113 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006407/0.6324, allocations: 4.196 MB / 0.5534 GB, free: 13.79 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006544/0.6331, allocations: 449.4 kB / 0.5539 GB, free: 13.55 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007476/0.6338, allocations: 0.4962 MB / 0.5544 GB, free: 13.26 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001253/0.634, allocations: 16.75 kB / 0.5544 GB, free: 13.25 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.469e-05/0.634, allocations: 46.53 kB / 0.5544 GB, free: 13.2 MB / 378.7 MB Notification: Performance of pre-optimization done (n=83): time 2.735e-06/0.634, allocations: 8 kB / 0.5544 GB, free: 13.19 MB / 378.7 MB Notification: Performance of matching and sorting (n=83): time 0.004066/0.6381, allocations: 1.414 MB / 0.5558 GB, free: 12 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.08e-05/0.6382, allocations: 244 kB / 0.556 GB, free: 11.7 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002497/0.6407, allocations: 1.569 MB / 0.5576 GB, free: 10.12 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.91e-05/0.6408, allocations: 25.7 kB / 0.5576 GB, free: 10.09 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002028/0.641, allocations: 282 kB / 0.5579 GB, free: 9.809 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002952/0.6413, allocations: 271.8 kB / 0.5581 GB, free: 9.539 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.323e-05/0.6414, allocations: 0 / 0.5581 GB, free: 9.539 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001306/0.6415, allocations: 338 kB / 0.5584 GB, free: 9.203 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000551/0.6421, allocations: 345.5 kB / 0.5588 GB, free: 8.867 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006054/0.6427, allocations: 451.5 kB / 0.5592 GB, free: 8.395 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001151/0.6438, allocations: 417.1 kB / 0.5596 GB, free: 7.988 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.561e-06/0.6439, allocations: 0 / 0.5596 GB, free: 7.988 MB / 378.7 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.004025/0.6479, allocations: 1.442 MB / 0.561 GB, free: 6.531 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.803e-05/0.6479, allocations: 4 kB / 0.561 GB, free: 6.527 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.716e-06/0.6479, allocations: 0 / 0.561 GB, free: 6.527 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002995/0.651, allocations: 0.7419 MB / 0.5617 GB, free: 5.781 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000509/0.6515, allocations: 103.9 kB / 0.5618 GB, free: 5.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002859/0.6543, allocations: 1.583 MB / 0.5634 GB, free: 4.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009532/0.6553, allocations: 67.41 kB / 0.5635 GB, free: 4.004 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.102e-05/0.6554, allocations: 31.98 kB / 0.5635 GB, free: 3.973 MB / 378.7 MB Warning: Assuming fixed start value for the following 1 variables: bat.battery.integrator.q:VARIABLE(start = bat.battery.SOC_start ) "Charge as current integration" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bat.terminal.i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real bat.terminal.i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real load.terminal.i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real load.terminal.i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" 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 (brk1.BrkOpen) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {16 22} Notification: Performance of prepare postOptimizeDAE: time 0.0003335/0.6558, allocations: 115.1 kB / 0.5636 GB, free: 3.855 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003988/0.6562, allocations: 122.5 kB / 0.5637 GB, free: 3.734 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003074/0.6593, allocations: 1.336 MB / 0.565 GB, free: 2.387 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.085e-05/0.6593, allocations: 8 kB / 0.565 GB, free: 2.379 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.633e-06/0.6593, allocations: 0 / 0.565 GB, free: 2.379 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.208e-05/0.6593, allocations: 3.984 kB / 0.565 GB, free: 2.375 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006137/0.6654, allocations: 3.115 MB / 0.5681 GB, free: 15.21 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-06/0.6655, allocations: 4.031 kB / 0.5681 GB, free: 15.2 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004805/0.666, allocations: 103.9 kB / 0.5682 GB, free: 15.1 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002745/0.6687, allocations: 0.7188 MB / 0.5689 GB, free: 14.38 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.319e-05/0.6688, allocations: 11.98 kB / 0.5689 GB, free: 14.37 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00264/0.6715, allocations: 1.569 MB / 0.5704 GB, free: 12.77 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/0.6715, allocations: 0 / 0.5704 GB, free: 12.77 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003982/0.6755, allocations: 1.94 MB / 0.5723 GB, free: 10.8 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004732/0.6802, allocations: 2.879 MB / 0.5751 GB, free: 7.895 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005975/0.6808, allocations: 307.3 kB / 0.5754 GB, free: 7.574 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002744/0.6811, allocations: 8.047 kB / 0.5754 GB, free: 7.566 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007133/0.6818, allocations: 43.97 kB / 0.5755 GB, free: 7.523 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000195/0.682, allocations: 64.67 kB / 0.5755 GB, free: 7.461 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.048e-05/0.6821, allocations: 27.98 kB / 0.5756 GB, free: 7.434 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.002161/0.6843, allocations: 1.204 MB / 0.5767 GB, free: 6.223 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001517/0.6858, allocations: 235.6 kB / 0.577 GB, free: 5.992 MB / 394.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 (brk1.BrkOpen) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {16 21} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006312/0.6865, allocations: 241.1 kB / 0.5772 GB, free: 5.793 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003299/0.6898, allocations: 1.188 MB / 0.5783 GB, free: 4.602 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.6898, allocations: 0 / 0.5783 GB, free: 4.602 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002537/0.6923, allocations: 0.8097 MB / 0.5791 GB, free: 3.793 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008141/0.6932, allocations: 87.31 kB / 0.5792 GB, free: 3.707 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005457/0.6986, allocations: 1.964 MB / 0.5811 GB, free: 1.699 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001452/0.7001, allocations: 1.286 MB / 0.5824 GB, free: 396 kB / 394.7 MB Notification: Performance of SimCode: time 5.61e-07/0.7001, allocations: 0 / 0.5824 GB, free: 396 kB / 394.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_UsingBatteries_LoadRescuedByBattery_fmu --startTime=0 --stopTime=21600 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_UsingBatteries_LoadRescuedByBattery.fmu > PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe 2>&1)