Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.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.UsingBatteries.OneBatteryOneLineOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad") translateModel(PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad") [: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.00153/0.001531, allocations: 190.1 kB / 7.845 MB, free: 2.492 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.335/1.335, allocations: 221.4 MB / 229.7 MB, free: 3.062 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.001009/0.001009, allocations: 96.23 kB / 280.5 MB, free: 1.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.04272/0.04272, allocations: 8.099 MB / 339.4 MB, free: 6.32 MB / 282.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 8.566e-06/8.606e-06, allocations: 4 kB / 397.9 MB, free: 68.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.12/0.12, allocations: 52.51 MB / 450.4 MB, free: 15.49 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.299/0.4191, allocations: 83.46 MB / 0.5214 GB, free: 10.77 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001832/0.4193, allocations: 68.22 kB / 0.5214 GB, free: 10.73 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.03639/0.4557, allocations: 14.24 MB / 0.5354 GB, free: 15.05 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.54e-05/0.4558, allocations: 12 kB / 0.5354 GB, free: 15.04 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.003533/0.4594, allocations: 1.086 MB / 0.5364 GB, free: 13.98 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.591e-05/0.4594, allocations: 11.97 kB / 0.5364 GB, free: 13.96 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005017/0.4599, allocations: 110.7 kB / 0.5365 GB, free: 13.86 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002146/0.4621, allocations: 0.8505 MB / 0.5374 GB, free: 13.12 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001526/0.4623, allocations: 72.38 kB / 0.5374 GB, free: 13.04 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.037e-05/0.4623, allocations: 20.59 kB / 0.5375 GB, free: 13.02 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005219/0.4629, allocations: 271.3 kB / 0.5377 GB, free: 12.88 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006339/0.4635, allocations: 382.2 kB / 0.5381 GB, free: 12.57 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.4635, allocations: 0 / 0.5381 GB, free: 12.57 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.617e-05/0.4636, allocations: 0 / 0.5381 GB, free: 12.57 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.187e-05/0.4636, allocations: 11.94 kB / 0.5381 GB, free: 12.56 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003893/0.4675, allocations: 2.189 MB / 0.5402 GB, free: 10.87 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002916/0.4678, allocations: 175 kB / 0.5404 GB, free: 10.76 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003652/0.4682, allocations: 192 kB / 0.5406 GB, free: 10.64 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.921e-05/0.4683, allocations: 4.234 kB / 0.5406 GB, free: 10.64 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.977e-05/0.4684, allocations: 38.23 kB / 0.5406 GB, free: 10.59 MB / 362.7 MB Notification: Performance of pre-optimization done (n=27): time 1.993e-06/0.4684, allocations: 4 kB / 0.5406 GB, free: 10.59 MB / 362.7 MB Notification: Performance of matching and sorting (n=27): time 0.001363/0.4697, allocations: 464 kB / 0.5411 GB, free: 10.24 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001099/0.4699, allocations: 243.2 kB / 0.5413 GB, free: 9.949 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002391/0.4723, allocations: 1.519 MB / 0.5428 GB, free: 8.816 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.16e-05/0.4723, allocations: 33.64 kB / 0.5428 GB, free: 8.777 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001767/0.4725, allocations: 242.9 kB / 0.543 GB, free: 8.578 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.704e-05/0.4726, allocations: 94.09 kB / 0.5431 GB, free: 8.496 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.727e-05/0.4726, allocations: 0 / 0.5431 GB, free: 8.496 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001155/0.4727, allocations: 317.8 kB / 0.5434 GB, free: 8.184 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001721/0.4729, allocations: 114.1 kB / 0.5436 GB, free: 8.125 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002413/0.4732, allocations: 199.4 kB / 0.5437 GB, free: 7.961 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003572/0.4735, allocations: 138 kB / 0.5439 GB, free: 7.875 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.4735, allocations: 0 / 0.5439 GB, free: 7.875 MB / 362.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.001273/0.4748, allocations: 0.5148 MB / 0.5444 GB, free: 7.477 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.62e-05/0.4748, allocations: 4 kB / 0.5444 GB, free: 7.473 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.4749, allocations: 4 kB / 0.5444 GB, free: 7.469 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006921/0.4756, allocations: 135.5 kB / 0.5445 GB, free: 7.363 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003657/0.4759, allocations: 75.89 kB / 0.5446 GB, free: 7.289 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002253/0.4782, allocations: 1.757 MB / 0.5463 GB, free: 5.703 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004763/0.4787, allocations: 43.98 kB / 0.5463 GB, free: 5.66 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.669e-05/0.4787, allocations: 23.78 kB / 0.5464 GB, free: 5.641 MB / 362.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 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (29): * Single equations (assignments): 28 * 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 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.000201/0.4789, allocations: 118.7 kB / 0.5465 GB, free: 5.52 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002091/0.4792, allocations: 94.78 kB / 0.5466 GB, free: 5.426 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001429/0.4806, allocations: 0.5198 MB / 0.5471 GB, free: 5.039 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.101e-06/0.4806, allocations: 4 kB / 0.5471 GB, free: 5.035 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.4806, allocations: 7.922 kB / 0.5471 GB, free: 5.027 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.011e-05/0.4806, allocations: 7.984 kB / 0.5471 GB, free: 5.02 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00326/0.4839, allocations: 1.494 MB / 0.5486 GB, free: 3.914 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.114e-06/0.4839, allocations: 0 / 0.5486 GB, free: 3.914 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003155/0.4843, allocations: 63.89 kB / 0.5486 GB, free: 3.852 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006411/0.4849, allocations: 135.9 kB / 0.5487 GB, free: 3.746 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.025e-05/0.485, allocations: 0 / 0.5487 GB, free: 3.746 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002252/0.4872, allocations: 1.777 MB / 0.5505 GB, free: 2.137 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/0.4872, allocations: 0 / 0.5505 GB, free: 2.137 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001607/0.4889, allocations: 0.7415 MB / 0.5512 GB, free: 1.566 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000497/0.4894, allocations: 274.1 kB / 0.5515 GB, free: 1.32 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002088/0.4896, allocations: 0 / 0.5515 GB, free: 1.32 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004954/0.4901, allocations: 40.03 kB / 0.5515 GB, free: 1.281 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.778e-05/0.4902, allocations: 26.77 kB / 0.5515 GB, free: 1.258 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.238e-05/0.4902, allocations: 11.31 kB / 0.5515 GB, free: 1.25 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.00194/0.4922, allocations: 1.168 MB / 0.5527 GB, free: 432 kB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007612/0.493, allocations: 151.2 kB / 0.5528 GB, free: 284 kB / 362.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 23 * 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 {2 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006085/0.4936, allocations: 235 kB / 0.553 GB, free: 84 kB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0009705/0.4946, allocations: 426.6 kB / 0.5535 GB, free: 15.77 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/0.4946, allocations: 3.938 kB / 0.5535 GB, free: 15.77 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005841/0.4952, allocations: 291.6 kB / 0.5537 GB, free: 15.54 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005806/0.4958, allocations: 72.42 kB / 0.5538 GB, free: 15.5 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003413/0.4992, allocations: 1.507 MB / 0.5553 GB, free: 14.18 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001097/0.5003, allocations: 1.144 MB / 0.5564 GB, free: 13.09 MB / 378.7 MB Notification: Performance of SimCode: time 2.9e-07/0.5003, allocations: 0 / 0.5564 GB, free: 13.09 MB / 378.7 MB Notification: Performance of Templates: time 0.0187/0.519, allocations: 8.269 MB / 0.5645 GB, free: 4.84 MB / 378.7 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.makefile (rm -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.sim & ./PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe 2>&1)