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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002034/0.002034, allocations: 180.7 kB / 15.8 MB, free: 6.34 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.429/1.429, allocations: 223.2 MB / 239.7 MB, free: 68 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001001/0.001001, allocations: 102.2 kB / 290.9 MB, free: 4.574 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.0504/0.0504, allocations: 8.099 MB / 350.1 MB, free: 4.812 MB / 282.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003328/0.0003328, allocations: 8 kB / 413.2 MB, free: 5.66 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2604/0.2607, allocations: 52.51 MB / 465.7 MB, free: 69.48 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1225/0.3833, allocations: 83.33 MB / 0.5362 GB, free: 2.039 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003062/0.3837, allocations: 67.97 kB / 0.5362 GB, free: 1.973 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2917/0.6754, allocations: 30.72 MB / 0.5662 GB, free: 82.79 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.915e-06/0.6755, allocations: 3.516 kB / 0.5662 GB, free: 82.79 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.795e-05/0.6755, allocations: 40.5 kB / 0.5663 GB, free: 82.79 MB / 378.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.004724/0.6803, allocations: 2.938 MB / 0.5691 GB, free: 81.24 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.12e-05/0.6803, allocations: 9.625 kB / 0.5692 GB, free: 81.24 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001589/0.6805, allocations: 124.1 kB / 0.5693 GB, free: 81.2 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003662/0.6809, allocations: 292.5 kB / 0.5695 GB, free: 81.05 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002934/0.6838, allocations: 2.162 MB / 0.5717 GB, free: 80.38 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001539/0.684, allocations: 215.9 kB / 0.5719 GB, free: 80.17 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.899e-05/0.6841, allocations: 63.56 kB / 0.5719 GB, free: 80.15 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001601/0.6857, allocations: 1.011 MB / 0.5729 GB, free: 79.61 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.652e-05/0.6857, allocations: 0 / 0.5729 GB, free: 79.61 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.455e-05/0.6858, allocations: 38.25 kB / 0.573 GB, free: 79.58 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.405e-05/0.6858, allocations: 13.5 kB / 0.573 GB, free: 79.58 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001282/0.6871, allocations: 0.7203 MB / 0.5737 GB, free: 79.32 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006693/0.6938, allocations: 5.044 MB / 0.5786 GB, free: 76.52 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001962/0.6958, allocations: 1.411 MB / 0.58 GB, free: 75 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.841e-05/0.6959, allocations: 16.55 kB / 0.58 GB, free: 74.98 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.017e-05/0.6959, allocations: 51.25 kB / 0.58 GB, free: 74.92 MB / 378.7 MB Notification: Performance of pre-optimization done (n=64): time 2.265e-06/0.6959, allocations: 0 / 0.58 GB, free: 74.92 MB / 378.7 MB Notification: Performance of matching and sorting (n=64): time 0.004021/0.7, allocations: 1.728 MB / 0.5817 GB, free: 73.17 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001533/0.7001, allocations: 0.6014 MB / 0.5823 GB, free: 72.42 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005309/0.7054, allocations: 4.436 MB / 0.5866 GB, free: 67.98 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.879e-05/0.7055, allocations: 45.7 kB / 0.5867 GB, free: 67.93 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008272/0.7064, allocations: 1.132 MB / 0.5878 GB, free: 66.79 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001357/0.7065, allocations: 222.1 kB / 0.588 GB, free: 66.57 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.318e-05/0.7065, allocations: 15.94 kB / 0.588 GB, free: 66.56 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.725e-05/0.7066, allocations: 330 kB / 0.5883 GB, free: 66.23 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006373/0.7073, allocations: 333.2 kB / 0.5887 GB, free: 65.9 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007202/0.708, allocations: 0.5375 MB / 0.5892 GB, free: 65.29 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006631/0.7087, allocations: 371.8 kB / 0.5895 GB, free: 64.93 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.7087, allocations: 0 / 0.5895 GB, free: 64.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002578/0.7113, allocations: 1.266 MB / 0.5908 GB, free: 63.65 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.43e-05/0.7113, allocations: 4.625 kB / 0.5908 GB, free: 63.65 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.7113, allocations: 4 kB / 0.5908 GB, free: 63.64 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001142/0.7125, allocations: 256.6 kB / 0.591 GB, free: 63.39 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006925/0.7132, allocations: 171.8 kB / 0.5912 GB, free: 63.22 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003209/0.7164, allocations: 2.57 MB / 0.5937 GB, free: 60.53 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001211/0.7176, allocations: 123.6 kB / 0.5938 GB, free: 60.41 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.853e-05/0.7177, allocations: 27.98 kB / 0.5938 GB, free: 60.38 MB / 378.7 MB Warning: Assuming fixed start value for the following 3 variables: bat3.battery.integrator.q:VARIABLE(start = bat3.battery.SOC_start fixed = true ) "Charge as current integration" type: Real bat2.battery.integrator.q:VARIABLE(start = bat2.battery.SOC_start fixed = true ) "Charge as current integration" type: Real bat1.battery.integrator.q:VARIABLE(start = bat1.battery.SOC_start fixed = true ) "Charge as current integration" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 1 (charging.y) * Number of discrete states: 0 () * Number of clocked 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.001822/0.7195, allocations: 0.9347 MB / 0.5948 GB, free: 59.45 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006417/0.7202, allocations: 264.7 kB / 0.595 GB, free: 59.18 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003389/0.7236, allocations: 1.33 MB / 0.5963 GB, free: 57.84 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.204e-06/0.7236, allocations: 4 kB / 0.5963 GB, free: 57.83 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.7236, allocations: 7.953 kB / 0.5963 GB, free: 57.82 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.496e-06/0.7236, allocations: 3.984 kB / 0.5963 GB, free: 57.82 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007872/0.7315, allocations: 3.752 MB / 0.6 GB, free: 54.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.326e-06/0.7315, allocations: 3.953 kB / 0.6 GB, free: 54.01 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006737/0.7322, allocations: 163.8 kB / 0.6001 GB, free: 53.85 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001079/0.7333, allocations: 260.5 kB / 0.6004 GB, free: 53.59 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.697e-05/0.7334, allocations: 19.98 kB / 0.6004 GB, free: 53.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002998/0.7364, allocations: 2.528 MB / 0.6029 GB, free: 50.91 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.7364, allocations: 0 / 0.6029 GB, free: 50.91 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004202/0.7406, allocations: 1.768 MB / 0.6046 GB, free: 49.12 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002265/0.7429, allocations: 0.6225 MB / 0.6052 GB, free: 48.48 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009839/0.7439, allocations: 16 kB / 0.6052 GB, free: 48.46 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001558/0.7455, allocations: 112.1 kB / 0.6053 GB, free: 48.36 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002472/0.7457, allocations: 72.44 kB / 0.6054 GB, free: 48.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.983e-05/0.7458, allocations: 23.98 kB / 0.6054 GB, free: 48.26 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.007236/0.753, allocations: 3.441 MB / 0.6088 GB, free: 44.82 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.11e-07/0.7531, allocations: 0 / 0.6088 GB, free: 44.82 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001884/0.7549, allocations: 407.5 kB / 0.6092 GB, free: 44.43 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 54 * 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.004997/0.7599, allocations: 2.532 MB / 0.6116 GB, free: 41.96 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002311/0.7623, allocations: 0.9981 MB / 0.6126 GB, free: 40.95 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.887e-06/0.7623, allocations: 8.484 kB / 0.6126 GB, free: 40.94 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001214/0.7635, allocations: 0.6109 MB / 0.6132 GB, free: 40.32 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00204/0.7656, allocations: 190.4 kB / 0.6134 GB, free: 40.13 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04276/0.8084, allocations: 21.97 MB / 0.6349 GB, free: 16.84 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001935/0.8104, allocations: 1.871 MB / 0.6367 GB, free: 14.93 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001473/0.8119, allocations: 408.1 kB / 0.6371 GB, free: 14.53 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002009/0.8139, allocations: 0.9757 MB / 0.638 GB, free: 13.55 MB / 378.7 MB Notification: Performance of SimCode: time 2.235e-06/0.8139, allocations: 0 / 0.638 GB, free: 13.55 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09099/0.9049, allocations: 50.41 MB / 0.6873 GB, free: 11.26 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003241/0.9053, allocations: 245.8 kB / 0.6875 GB, free: 10.95 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.632/4.537, allocations: 0 / 0.6875 GB, free: 10.95 MB / 426.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)