Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.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.ChargingBatteries,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_UsingBatteries_ChargingBatteries",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.UsingBatteries.ChargingBatteries,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_UsingBatteries_ChargingBatteries",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.001058/0.001057, allocations: 195.7 kB / 7.848 MB, free: 2.496 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.182/1.182, allocations: 221.4 MB / 229.7 MB, free: 3.016 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.0009044/0.0009044, allocations: 97.05 kB / 280.5 MB, free: 1.23 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.03495/0.03495, allocations: 8.102 MB / 339.4 MB, free: 6.336 MB / 282.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.1759/0.2109, allocations: 58.63 MB / 398 MB, free: 67.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07978/0.2907, allocations: 52.51 MB / 450.5 MB, free: 15.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.256/0.5468, allocations: 82.87 MB / 0.5209 GB, free: 11.27 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001702/0.547, allocations: 67.72 kB / 0.521 GB, free: 11.23 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: 159 * Number of variables: 159 Notification: Performance of Generate backend data structure: time 0.07939/0.6264, allocations: 32.14 MB / 0.5523 GB, free: 176 kB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.293e-05/0.6264, allocations: 15.94 kB / 0.5524 GB, free: 160 kB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009859/0.6274, allocations: 292.3 kB / 0.5526 GB, free: 15.86 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004063/0.6315, allocations: 2.14 MB / 0.5547 GB, free: 14.14 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001737/0.6317, allocations: 207.1 kB / 0.5549 GB, free: 13.91 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001044/0.6318, allocations: 36 kB / 0.555 GB, free: 13.88 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009979/0.6328, allocations: 0.5477 MB / 0.5555 GB, free: 13.57 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001246/0.6341, allocations: 0.8135 MB / 0.5563 GB, free: 12.91 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.753e-05/0.6341, allocations: 0 / 0.5563 GB, free: 12.91 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.819e-05/0.6342, allocations: 7.938 kB / 0.5563 GB, free: 12.91 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.481e-05/0.6342, allocations: 12 kB / 0.5563 GB, free: 12.89 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007764/0.642, allocations: 4.954 MB / 0.5611 GB, free: 9.145 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001108/0.6431, allocations: 0.8644 MB / 0.562 GB, free: 8.215 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007064/0.6439, allocations: 442.5 kB / 0.5624 GB, free: 7.781 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.083e-05/0.6439, allocations: 16.64 kB / 0.5624 GB, free: 7.766 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.949e-05/0.644, allocations: 47.41 kB / 0.5625 GB, free: 7.711 MB / 378.7 MB Notification: Performance of pre-optimization done (n=63): time 3.085e-06/0.644, allocations: 0 / 0.5625 GB, free: 7.711 MB / 378.7 MB Notification: Performance of matching and sorting (n=63): time 0.002357/0.6464, allocations: 0.9659 MB / 0.5634 GB, free: 6.73 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002654/0.6466, allocations: 0.5977 MB / 0.564 GB, free: 5.992 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00657/0.6532, allocations: 4.257 MB / 0.5682 GB, free: 1.727 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001882/0.6534, allocations: 25.7 kB / 0.5682 GB, free: 1.695 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004131/0.6539, allocations: 0.5183 MB / 0.5687 GB, free: 1.168 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002333/0.6541, allocations: 200.9 kB / 0.5689 GB, free: 0.9688 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.348e-05/0.6541, allocations: 0 / 0.5689 GB, free: 0.9688 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.249e-05/0.6542, allocations: 330 kB / 0.5692 GB, free: 0.6406 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003538/0.6546, allocations: 225.3 kB / 0.5694 GB, free: 432 kB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005102/0.6551, allocations: 464.5 kB / 0.5698 GB, free: 15.88 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006348/0.6558, allocations: 286.9 kB / 0.5701 GB, free: 15.61 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.6558, allocations: 0 / 0.5701 GB, free: 15.61 MB / 394.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002714/0.6585, allocations: 1.052 MB / 0.5711 GB, free: 14.54 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.863e-05/0.6585, allocations: 4 kB / 0.5712 GB, free: 14.54 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/0.6586, allocations: 8 kB / 0.5712 GB, free: 14.53 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00121/0.6598, allocations: 260.6 kB / 0.5714 GB, free: 14.27 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000792/0.6606, allocations: 187.7 kB / 0.5716 GB, free: 14.09 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003163/0.6638, allocations: 2.243 MB / 0.5738 GB, free: 11.73 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001381/0.6652, allocations: 115.6 kB / 0.5739 GB, free: 11.62 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.959e-05/0.6652, allocations: 23.98 kB / 0.5739 GB, free: 11.59 MB / 394.7 MB Warning: Assuming fixed start value for the following 3 variables: bat3.battery.integrator.q:VARIABLE(start = bat3.battery.SOC_start ) "Charge as current integration" type: Real bat2.battery.integrator.q:VARIABLE(start = bat2.battery.SOC_start ) "Charge as current integration" type: Real bat1.battery.integrator.q:VARIABLE(start = bat1.battery.SOC_start ) "Charge as current integration" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bat3.terminal.i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real bat1.terminal.i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real bat3.terminal.i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real bat2.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: 8 * Number of states: 0 () * Number of discrete variables: 1 (charging.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 62 * 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 {6 6} Notification: Performance of prepare postOptimizeDAE: time 0.0002843/0.6655, allocations: 143.9 kB / 0.574 GB, free: 11.45 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004985/0.666, allocations: 260.6 kB / 0.5743 GB, free: 11.19 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002792/0.6688, allocations: 1.093 MB / 0.5754 GB, free: 10.08 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/0.6689, allocations: 4 kB / 0.5754 GB, free: 10.08 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.6689, allocations: 3.984 kB / 0.5754 GB, free: 10.07 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-06/0.6689, allocations: 4 kB / 0.5754 GB, free: 10.07 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005996/0.6749, allocations: 3.433 MB / 0.5787 GB, free: 6.574 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.147e-06/0.6749, allocations: 0 / 0.5787 GB, free: 6.574 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007066/0.6756, allocations: 168 kB / 0.5789 GB, free: 6.41 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001148/0.6768, allocations: 264.4 kB / 0.5791 GB, free: 6.148 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.563e-05/0.6768, allocations: 8 kB / 0.5791 GB, free: 6.141 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002935/0.6798, allocations: 2.256 MB / 0.5814 GB, free: 3.762 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.6798, allocations: 0 / 0.5814 GB, free: 3.762 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002962/0.6828, allocations: 1.523 MB / 0.5828 GB, free: 2.184 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003256/0.686, allocations: 2.281 MB / 0.5851 GB, free: 15.84 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001059/0.6871, allocations: 0.6225 MB / 0.5857 GB, free: 15.19 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003265/0.6875, allocations: 0 / 0.5857 GB, free: 15.19 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008743/0.6883, allocations: 103.9 kB / 0.5858 GB, free: 15.09 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001686/0.6885, allocations: 68.38 kB / 0.5858 GB, free: 15.02 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.133e-05/0.6886, allocations: 20 kB / 0.5859 GB, free: 15 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.004964/0.6935, allocations: 3.261 MB / 0.589 GB, free: 11.75 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002107/0.6957, allocations: 371.4 kB / 0.5894 GB, free: 11.38 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (bat1.battery.integrator.q,bat2.battery.integrator.q,bat3.battery.integrator.q) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * 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 {6 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005848/0.6963, allocations: 239.2 kB / 0.5896 GB, free: 11.18 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001408/0.6977, allocations: 0.7493 MB / 0.5904 GB, free: 10.43 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.6977, allocations: 240 / 0.5904 GB, free: 10.43 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008533/0.6986, allocations: 0.4993 MB / 0.5908 GB, free: 9.918 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001003/0.6996, allocations: 175 kB / 0.591 GB, free: 9.746 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008623/0.7082, allocations: 4.325 MB / 0.5952 GB, free: 5.359 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002195/0.7105, allocations: 2.002 MB / 0.5972 GB, free: 3.324 MB / 410.7 MB Notification: Performance of SimCode: time 6.62e-07/0.7105, allocations: 0 / 0.5972 GB, free: 3.324 MB / 410.7 MB (rm -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_UsingBatteries_ChargingBatteries_fmu --startTime=0 --stopTime=36000 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_UsingBatteries_ChargingBatteries.fmu > PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.pipe 2>&1)