Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.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.MixingOneSourceOneBatteryOneDieselOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad") translateModel(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad") [: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.001087/0.001087, allocations: 192.5 kB / 7.845 MB, free: 2.234 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.535/1.535, allocations: 221.4 MB / 229.7 MB, free: 3.07 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.00101/0.00101, allocations: 99.06 kB / 280.5 MB, free: 1.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.05525/0.05525, allocations: 8.102 MB / 339.4 MB, free: 6.348 MB / 282.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 8.246e-06/8.366e-06, allocations: 0 / 397.9 MB, free: 68.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1297/0.1298, allocations: 52.52 MB / 450.4 MB, free: 15.51 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4261/0.556, allocations: 86.12 MB / 0.524 GB, free: 8.203 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002534/0.5563, allocations: 65.59 kB / 0.524 GB, free: 8.176 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.06078/0.6171, allocations: 22.26 MB / 0.5458 GB, free: 6.355 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.967e-05/0.6172, allocations: 20 kB / 0.5458 GB, free: 6.336 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 153 * Number of variables: 153 Notification: Performance of Generate backend data structure: time 0.004219/0.6214, allocations: 1.336 MB / 0.5471 GB, free: 5.043 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.969e-05/0.6215, allocations: 15.97 kB / 0.5471 GB, free: 5.027 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007091/0.6222, allocations: 146.3 kB / 0.5472 GB, free: 4.883 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00283/0.6251, allocations: 0.9511 MB / 0.5482 GB, free: 4.078 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003466/0.6255, allocations: 198.7 kB / 0.5484 GB, free: 3.852 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002705/0.6257, allocations: 32 kB / 0.5484 GB, free: 3.82 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001825/0.6276, allocations: 0.6033 MB / 0.549 GB, free: 3.473 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001871/0.6295, allocations: 0.7 MB / 0.5497 GB, free: 2.965 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.503e-05/0.6295, allocations: 0 / 0.5497 GB, free: 2.965 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001015/0.6296, allocations: 3.938 kB / 0.5497 GB, free: 2.961 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.389e-05/0.6297, allocations: 16 kB / 0.5497 GB, free: 2.945 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006999/0.6367, allocations: 3.589 MB / 0.5532 GB, free: 248 kB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005918/0.6373, allocations: 429.8 kB / 0.5536 GB, free: 0 / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007417/0.638, allocations: 454 kB / 0.554 GB, free: 15.74 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001121/0.6382, allocations: 20.75 kB / 0.554 GB, free: 15.72 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006704/0.6388, allocations: 481.7 kB / 0.5545 GB, free: 15.39 MB / 378.7 MB Notification: Performance of pre-optimization done (n=87): time 2.855e-06/0.6388, allocations: 0 / 0.5545 GB, free: 15.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=87): time 0.00264/0.6415, allocations: 1.055 MB / 0.5555 GB, free: 14.64 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000167/0.6417, allocations: 269.8 kB / 0.5558 GB, free: 14.32 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00268/0.6444, allocations: 1.562 MB / 0.5573 GB, free: 12.92 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.36e-05/0.6445, allocations: 25.7 kB / 0.5573 GB, free: 12.89 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002811/0.6447, allocations: 293.6 kB / 0.5576 GB, free: 12.59 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002864/0.645, allocations: 271.8 kB / 0.5579 GB, free: 12.32 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.134e-05/0.6451, allocations: 0 / 0.5579 GB, free: 12.32 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.6453, allocations: 349.8 kB / 0.5582 GB, free: 11.98 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004887/0.6458, allocations: 293.5 kB / 0.5585 GB, free: 11.69 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005853/0.6463, allocations: 429 kB / 0.5589 GB, free: 11.23 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001072/0.6474, allocations: 369.1 kB / 0.5593 GB, free: 10.87 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.52e-06/0.6474, allocations: 0 / 0.5593 GB, free: 10.87 MB / 378.7 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.003112/0.6506, allocations: 1.213 MB / 0.5604 GB, free: 9.648 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.092e-05/0.6506, allocations: 4 kB / 0.5604 GB, free: 9.645 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.203e-05/0.6506, allocations: 0 / 0.5604 GB, free: 9.645 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001844/0.6525, allocations: 498.7 kB / 0.5609 GB, free: 9.156 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005186/0.653, allocations: 111.9 kB / 0.561 GB, free: 9.047 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001881/0.6549, allocations: 1.209 MB / 0.5622 GB, free: 7.805 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008489/0.6558, allocations: 71.41 kB / 0.5623 GB, free: 7.734 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.252e-05/0.6559, allocations: 31.98 kB / 0.5623 GB, free: 7.703 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 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 10 ($PRE.delay.firstTrigger,delay.firstTrigger,$whenCondition2,$whenCondition1,delay.sampleTrigger,brk4.BrkOpen,bat.ChargingMode,brk3.BrkOpen,$PRE.delay.y,delay.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 63 * 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 {12 22} Notification: Performance of prepare postOptimizeDAE: time 0.0003695/0.6562, allocations: 129.5 kB / 0.5624 GB, free: 7.574 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003485/0.6566, allocations: 130.4 kB / 0.5626 GB, free: 7.445 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003006/0.6596, allocations: 1.199 MB / 0.5637 GB, free: 6.234 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.144e-05/0.6596, allocations: 8 kB / 0.5637 GB, free: 6.227 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/0.6597, allocations: 0 / 0.5637 GB, free: 6.227 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.366e-05/0.6597, allocations: 7.969 kB / 0.5637 GB, free: 6.219 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005762/0.6654, allocations: 2.881 MB / 0.5666 GB, free: 3.285 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.5e-06/0.6655, allocations: 3.938 kB / 0.5666 GB, free: 3.281 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004866/0.666, allocations: 107.9 kB / 0.5667 GB, free: 3.176 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001751/0.6677, allocations: 488.4 kB / 0.5671 GB, free: 2.695 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.635e-05/0.6678, allocations: 7.984 kB / 0.5671 GB, free: 2.688 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001714/0.6695, allocations: 1.213 MB / 0.5683 GB, free: 1.449 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/0.6696, allocations: 3.938 kB / 0.5683 GB, free: 1.445 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003451/0.673, allocations: 1.658 MB / 0.5699 GB, free: 15.76 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007529/0.6738, allocations: 307.3 kB / 0.5702 GB, free: 15.44 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003628/0.6742, allocations: 4 kB / 0.5702 GB, free: 15.43 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008366/0.675, allocations: 52.02 kB / 0.5703 GB, free: 15.38 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002154/0.6752, allocations: 72.66 kB / 0.5704 GB, free: 15.31 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.935e-05/0.6753, allocations: 23.98 kB / 0.5704 GB, free: 15.29 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.002493/0.6778, allocations: 1.199 MB / 0.5716 GB, free: 14.08 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00114/0.679, allocations: 223.6 kB / 0.5718 GB, free: 13.86 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: 8 (delay.sampleTrigger,$whenCondition2,$whenCondition1,brk4.BrkOpen,bat.ChargingMode,brk3.BrkOpen,delay.firstTrigger,delay.y) * Number of discrete states: 1 (delay.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {12 21} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007443/0.6797, allocations: 247.6 kB / 0.572 GB, free: 13.66 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002837/0.6826, allocations: 0.9844 MB / 0.573 GB, free: 12.67 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.723e-06/0.6826, allocations: 4 kB / 0.573 GB, free: 12.66 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001899/0.6845, allocations: 0.626 MB / 0.5736 GB, free: 12.04 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009548/0.6855, allocations: 84.44 kB / 0.5737 GB, free: 11.96 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005684/0.6912, allocations: 1.933 MB / 0.5756 GB, free: 9.977 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001599/0.6928, allocations: 1.288 MB / 0.5768 GB, free: 8.664 MB / 394.7 MB Notification: Performance of SimCode: time 1.182e-06/0.6928, allocations: 0 / 0.5768 GB, free: 8.664 MB / 394.7 MB Notification: Performance of Templates: time 0.02687/0.7197, allocations: 12.41 MB / 0.5889 GB, free: 12.25 MB / 410.7 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.makefile (rm -f PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.sim & ./PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.pipe 2>&1)