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: "" <> buildModelFMU(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_MixingOneSourceOneBatteryOneDieselOneLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_MixingOneSourceOneBatteryOneDieselOneLoad",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.001152/0.001152, allocations: 181.3 kB / 13.23 MB, free: 2.086 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.318/1.318, allocations: 221.4 MB / 235.1 MB, free: 14.44 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009201/0.00092, allocations: 104.3 kB / 286.1 MB, free: 12.98 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.05248/0.05248, allocations: 8.099 MB / 345.1 MB, free: 1.922 MB / 282.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 3.515e-05/3.518e-05, allocations: 4 kB / 405.6 MB, free: 61.87 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1081, allocations: 52.52 MB / 458.1 MB, free: 9.359 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3524/0.4606, allocations: 86.76 MB / 0.5321 GB, free: 15.33 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002079/0.4609, allocations: 71.78 kB / 0.5321 GB, free: 15.3 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05756/0.5184, allocations: 22.97 MB / 0.5546 GB, free: 12.36 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.332e-06/0.5185, allocations: 0 / 0.5546 GB, free: 12.36 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.331e-05/0.5185, allocations: 24 kB / 0.5546 GB, free: 12.34 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: 153 * Number of variables: 153 Notification: Performance of Generate backend data structure: time 0.00255/0.5211, allocations: 1.31 MB / 0.5559 GB, free: 11.08 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.051e-05/0.5211, allocations: 12.02 kB / 0.5559 GB, free: 11.07 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001305/0.5213, allocations: 103.6 kB / 0.556 GB, free: 11 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002254/0.5215, allocations: 146.3 kB / 0.5561 GB, free: 10.85 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001316/0.5228, allocations: 0.9473 MB / 0.557 GB, free: 10.05 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001611/0.523, allocations: 231.3 kB / 0.5573 GB, free: 9.812 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.738e-05/0.5231, allocations: 57.81 kB / 0.5573 GB, free: 9.773 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001213/0.5243, allocations: 0.7812 MB / 0.5581 GB, free: 9.234 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.504e-05/0.5243, allocations: 3.938 kB / 0.5581 GB, free: 9.23 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.46e-05/0.5244, allocations: 33.62 kB / 0.5581 GB, free: 9.219 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.335e-05/0.5244, allocations: 12 kB / 0.5581 GB, free: 9.207 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000942/0.5254, allocations: 0.6309 MB / 0.5587 GB, free: 8.832 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005577/0.531, allocations: 3.693 MB / 0.5624 GB, free: 6.055 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001786/0.5328, allocations: 1.355 MB / 0.5637 GB, free: 5.02 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00067/0.5335, allocations: 477.4 kB / 0.5641 GB, free: 4.738 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.792e-05/0.5336, allocations: 20.75 kB / 0.5642 GB, free: 4.715 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007586/0.5344, allocations: 0.5091 MB / 0.5647 GB, free: 4.184 MB / 378.7 MB Notification: Performance of pre-optimization done (n=89): time 3.055e-06/0.5344, allocations: 0 / 0.5647 GB, free: 4.184 MB / 378.7 MB Notification: Performance of matching and sorting (n=89): time 0.00206/0.5365, allocations: 1.082 MB / 0.5657 GB, free: 3.094 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001042/0.5366, allocations: 265.8 kB / 0.566 GB, free: 2.773 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002261/0.5388, allocations: 1.607 MB / 0.5675 GB, free: 1.148 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.733e-05/0.539, allocations: 45.73 kB / 0.5676 GB, free: 1.098 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000475/0.5394, allocations: 0.4899 MB / 0.5681 GB, free: 0.6055 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002696/0.5397, allocations: 291.7 kB / 0.5683 GB, free: 324 kB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.456e-05/0.5398, allocations: 16 kB / 0.5683 GB, free: 308 kB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.5399, allocations: 334 kB / 0.5687 GB, free: 15.97 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005002/0.5404, allocations: 305.5 kB / 0.569 GB, free: 15.67 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005643/0.541, allocations: 452.5 kB / 0.5694 GB, free: 15.18 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005527/0.5416, allocations: 338.7 kB / 0.5697 GB, free: 14.86 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.5416, allocations: 4 kB / 0.5697 GB, free: 14.85 MB / 394.7 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.002521/0.5441, allocations: 1.219 MB / 0.5709 GB, free: 13.62 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.134e-05/0.5441, allocations: 4 kB / 0.5709 GB, free: 13.62 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.084e-05/0.5442, allocations: 4 kB / 0.5709 GB, free: 13.61 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001664/0.5458, allocations: 0.5098 MB / 0.5714 GB, free: 13.1 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004423/0.5463, allocations: 111.9 kB / 0.5715 GB, free: 12.99 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00144/0.5477, allocations: 1.143 MB / 0.5726 GB, free: 11.82 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007094/0.5485, allocations: 83.44 kB / 0.5727 GB, free: 11.73 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.156e-05/0.5485, allocations: 28.06 kB / 0.5727 GB, free: 11.71 MB / 394.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: 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.0002454/0.5488, allocations: 169.6 kB / 0.5729 GB, free: 11.54 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001892/0.549, allocations: 122.5 kB / 0.573 GB, free: 11.41 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002283/0.5513, allocations: 1.217 MB / 0.5742 GB, free: 10.18 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.081e-05/0.5513, allocations: 11.98 kB / 0.5742 GB, free: 10.17 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.5513, allocations: 4 kB / 0.5742 GB, free: 10.17 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.432e-05/0.5513, allocations: 15.92 kB / 0.5742 GB, free: 10.15 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004387/0.5557, allocations: 3.002 MB / 0.5772 GB, free: 7.086 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.302e-06/0.5558, allocations: 0 / 0.5772 GB, free: 7.086 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004466/0.5562, allocations: 103.9 kB / 0.5773 GB, free: 6.984 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001661/0.5579, allocations: 0.4967 MB / 0.5778 GB, free: 6.484 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.973e-05/0.558, allocations: 23.98 kB / 0.5778 GB, free: 6.461 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001415/0.5594, allocations: 1.131 MB / 0.5789 GB, free: 5.305 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.5594, allocations: 0 / 0.5789 GB, free: 5.305 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002739/0.5622, allocations: 1.687 MB / 0.5805 GB, free: 3.59 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005865/0.5628, allocations: 307.3 kB / 0.5808 GB, free: 3.27 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001452/0.5629, allocations: 19.98 kB / 0.5808 GB, free: 3.25 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005967/0.5635, allocations: 64.03 kB / 0.5809 GB, free: 3.188 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001689/0.5637, allocations: 76.66 kB / 0.581 GB, free: 3.113 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.151e-05/0.5638, allocations: 23.98 kB / 0.581 GB, free: 3.09 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001777/0.5656, allocations: 1.247 MB / 0.5822 GB, free: 1.832 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5656, allocations: 0 / 0.5822 GB, free: 1.832 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007488/0.5663, allocations: 267.6 kB / 0.5825 GB, free: 1.57 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 (64): * Single equations (assignments): 61 * 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.003484/0.5698, allocations: 2.486 MB / 0.5849 GB, free: 15.11 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002387/0.5722, allocations: 1.003 MB / 0.5859 GB, free: 14.11 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.5723, allocations: 3.938 kB / 0.5859 GB, free: 14.11 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001718/0.574, allocations: 0.6593 MB / 0.5865 GB, free: 13.45 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008803/0.5749, allocations: 98.62 kB / 0.5866 GB, free: 13.36 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005446/0.5803, allocations: 2.256 MB / 0.5888 GB, free: 11.06 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007976/0.5812, allocations: 1.197 MB / 0.59 GB, free: 9.836 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0005244/0.5817, allocations: 183.2 kB / 0.5902 GB, free: 9.652 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005879/0.5823, allocations: 451.3 kB / 0.5906 GB, free: 9.215 MB / 410.7 MB Notification: Performance of SimCode: time 1.282e-06/0.5823, allocations: 0 / 0.5906 GB, free: 9.215 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04829/0.6306, allocations: 25.71 MB / 0.6157 GB, free: 15.61 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002557/0.6309, allocations: 232.7 kB / 0.6159 GB, free: 15.35 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.762/3.393, allocations: 0 / 0.6159 GB, free: 15.35 MB / 442.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_MixingOneSourceOneBatteryOneDieselOneLoad_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_MixingOneSourceOneBatteryOneDieselOneLoad.fmu > PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.pipe 2>&1)