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: "" <> buildModelFMU(PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_UsingBatteries_OneBatteryOneLineOneLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_UsingBatteries_OneBatteryOneLineOneLoad",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.001094/0.001094, allocations: 186.8 kB / 7.843 MB, free: 2.504 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.173/1.173, allocations: 221.4 MB / 229.7 MB, free: 3.074 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.0009745/0.0009746, allocations: 105 kB / 280.5 MB, free: 1.312 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.03397/0.03397, allocations: 8.095 MB / 339.4 MB, free: 6.426 MB / 282.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.1633/0.1973, allocations: 58.63 MB / 398 MB, free: 67.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07933/0.2766, allocations: 52.51 MB / 450.5 MB, free: 15.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.244/0.5206, allocations: 83.47 MB / 0.5215 GB, free: 10.71 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001979/0.5209, allocations: 73.52 kB / 0.5215 GB, free: 10.67 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0373/0.5582, allocations: 15.34 MB / 0.5365 GB, free: 13.92 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.501e-05/0.5583, allocations: 19.92 kB / 0.5365 GB, free: 13.9 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00028/0.5585, allocations: 102.7 kB / 0.5366 GB, free: 13.8 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001447/0.56, allocations: 0.8562 MB / 0.5375 GB, free: 13.05 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.528e-05/0.5601, allocations: 71.44 kB / 0.5375 GB, free: 12.98 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.127e-05/0.5602, allocations: 16 kB / 0.5376 GB, free: 12.96 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004584/0.5606, allocations: 272.6 kB / 0.5378 GB, free: 12.81 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006019/0.5612, allocations: 375.2 kB / 0.5382 GB, free: 12.52 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.375e-05/0.5613, allocations: 0 / 0.5382 GB, free: 12.52 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.281e-05/0.5613, allocations: 4.438 kB / 0.5382 GB, free: 12.51 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.777e-06/0.5613, allocations: 4 kB / 0.5382 GB, free: 12.51 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003512/0.5649, allocations: 2.195 MB / 0.5403 GB, free: 10.81 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002482/0.5651, allocations: 174.2 kB / 0.5405 GB, free: 10.71 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003464/0.5655, allocations: 185.1 kB / 0.5407 GB, free: 10.59 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.767e-05/0.5655, allocations: 4.234 kB / 0.5407 GB, free: 10.59 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.928e-05/0.5656, allocations: 46.61 kB / 0.5407 GB, free: 10.54 MB / 362.7 MB Notification: Performance of pre-optimization done (n=27): time 1.583e-06/0.5656, allocations: 0 / 0.5407 GB, free: 10.54 MB / 362.7 MB Notification: Performance of matching and sorting (n=27): time 0.001238/0.5668, allocations: 463.2 kB / 0.5412 GB, free: 10.18 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.799e-05/0.5669, allocations: 246.8 kB / 0.5414 GB, free: 9.891 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002036/0.569, allocations: 1.52 MB / 0.5429 GB, free: 8.758 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.887e-05/0.569, allocations: 25.7 kB / 0.5429 GB, free: 8.727 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001691/0.5692, allocations: 243.9 kB / 0.5431 GB, free: 8.527 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.285e-05/0.5693, allocations: 92.58 kB / 0.5432 GB, free: 8.445 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.714e-05/0.5693, allocations: 0 / 0.5432 GB, free: 8.445 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001314/0.5695, allocations: 317 kB / 0.5435 GB, free: 8.133 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001782/0.5697, allocations: 120.5 kB / 0.5436 GB, free: 8.07 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002342/0.5699, allocations: 201 kB / 0.5438 GB, free: 7.902 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003612/0.5703, allocations: 135 kB / 0.544 GB, free: 7.82 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.5703, allocations: 8 kB / 0.544 GB, free: 7.812 MB / 362.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.00123/0.5715, allocations: 0.5102 MB / 0.5445 GB, free: 7.418 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.305e-05/0.5715, allocations: 4 kB / 0.5445 GB, free: 7.414 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.5716, allocations: 4.094 kB / 0.5445 GB, free: 7.41 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006613/0.5722, allocations: 133.1 kB / 0.5446 GB, free: 7.305 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003279/0.5726, allocations: 75.27 kB / 0.5447 GB, free: 7.234 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002169/0.5747, allocations: 1.768 MB / 0.5464 GB, free: 5.641 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004184/0.5752, allocations: 43.8 kB / 0.5464 GB, free: 5.598 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.004e-05/0.5752, allocations: 11.98 kB / 0.5465 GB, free: 5.586 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.0001629/0.5754, allocations: 112.9 kB / 0.5466 GB, free: 5.469 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001577/0.5755, allocations: 98.72 kB / 0.5467 GB, free: 5.375 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001223/0.5768, allocations: 0.5255 MB / 0.5472 GB, free: 4.98 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.5768, allocations: 4 kB / 0.5472 GB, free: 4.977 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.513e-06/0.5768, allocations: 0 / 0.5472 GB, free: 4.977 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.162e-06/0.5768, allocations: 3.984 kB / 0.5472 GB, free: 4.973 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002375/0.5792, allocations: 1.494 MB / 0.5486 GB, free: 3.867 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.5792, allocations: 0 / 0.5486 GB, free: 3.867 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002935/0.5795, allocations: 71.17 kB / 0.5487 GB, free: 3.801 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006132/0.5801, allocations: 134.7 kB / 0.5488 GB, free: 3.695 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.492e-05/0.5802, allocations: 8 kB / 0.5488 GB, free: 3.688 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002014/0.5822, allocations: 1.768 MB / 0.5506 GB, free: 2.086 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.5822, allocations: 0 / 0.5506 GB, free: 2.086 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001325/0.5835, allocations: 0.741 MB / 0.5513 GB, free: 1.516 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001642/0.5852, allocations: 1.296 MB / 0.5526 GB, free: 492 kB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003696/0.5856, allocations: 274.1 kB / 0.5528 GB, free: 240 kB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001323/0.5857, allocations: 4 kB / 0.5528 GB, free: 236 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004143/0.5861, allocations: 40.03 kB / 0.5529 GB, free: 196 kB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.144e-05/0.5862, allocations: 31.36 kB / 0.5529 GB, free: 168 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.349e-05/0.5863, allocations: 11.44 kB / 0.5529 GB, free: 160 kB / 362.7 MB Notification: Performance of sort global known variables: time 0.001509/0.5878, allocations: 1.172 MB / 0.554 GB, free: 15.32 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001242/0.589, allocations: 165.1 kB / 0.5542 GB, free: 15.17 MB / 378.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.000537/0.5896, allocations: 235.5 kB / 0.5544 GB, free: 14.98 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000841/0.5904, allocations: 435.8 kB / 0.5548 GB, free: 14.66 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.5904, allocations: 4 kB / 0.5548 GB, free: 14.66 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005536/0.591, allocations: 276.9 kB / 0.5551 GB, free: 14.44 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004385/0.5915, allocations: 81.11 kB / 0.5552 GB, free: 14.4 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003053/0.5945, allocations: 1.511 MB / 0.5567 GB, free: 13.08 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009998/0.5955, allocations: 1.154 MB / 0.5578 GB, free: 11.97 MB / 378.7 MB Notification: Performance of SimCode: time 3.01e-07/0.5956, allocations: 0 / 0.5578 GB, free: 11.97 MB / 378.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_UsingBatteries_OneBatteryOneLineOneLoad_fmu --startTime=0 --stopTime=360000 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_UsingBatteries_OneBatteryOneLineOneLoad.fmu > PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe 2>&1)