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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001592/0.001592, allocations: 182 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.426/1.426, allocations: 221.4 MB / 235.1 MB, free: 14.43 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.0009016/0.0009015, allocations: 99.36 kB / 286.1 MB, free: 12.97 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.05184/0.05184, allocations: 8.104 MB / 345.1 MB, free: 1.914 MB / 282.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 3.831e-05/3.844e-05, allocations: 0 / 405.6 MB, free: 61.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1114, allocations: 52.53 MB / 458.1 MB, free: 9.336 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4251/0.5366, allocations: 84.09 MB / 0.5295 GB, free: 1.977 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002351/0.5369, allocations: 70.78 kB / 0.5295 GB, free: 1.941 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03884/0.5757, allocations: 14.82 MB / 0.544 GB, free: 5.422 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.5758, allocations: 0 / 0.544 GB, free: 5.422 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.047e-05/0.5759, allocations: 16 kB / 0.544 GB, free: 5.406 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.003067/0.5789, allocations: 1.077 MB / 0.5451 GB, free: 4.348 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.007e-05/0.579, allocations: 8.031 kB / 0.5451 GB, free: 4.34 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001578/0.5792, allocations: 59.92 kB / 0.5451 GB, free: 4.289 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003817/0.5796, allocations: 106.7 kB / 0.5452 GB, free: 4.184 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001573/0.5811, allocations: 0.8497 MB / 0.5461 GB, free: 3.453 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001024/0.5813, allocations: 81.34 kB / 0.5461 GB, free: 3.371 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.713e-05/0.5813, allocations: 31.08 kB / 0.5462 GB, free: 3.348 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007167/0.5821, allocations: 422.1 kB / 0.5466 GB, free: 3.035 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.616e-05/0.5821, allocations: 3.938 kB / 0.5466 GB, free: 3.031 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.662e-05/0.5821, allocations: 13.94 kB / 0.5466 GB, free: 3.027 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.849e-05/0.5822, allocations: 8 kB / 0.5466 GB, free: 3.02 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004679/0.5826, allocations: 285 kB / 0.5469 GB, free: 2.859 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003696/0.5863, allocations: 2.233 MB / 0.5491 GB, free: 1.125 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000771/0.5871, allocations: 424.5 kB / 0.5495 GB, free: 0.8203 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003233/0.5875, allocations: 178.9 kB / 0.5496 GB, free: 0.7109 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.509e-05/0.5876, allocations: 15.66 kB / 0.5496 GB, free: 0.6992 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.018e-05/0.5876, allocations: 42.47 kB / 0.5497 GB, free: 0.6523 MB / 362.7 MB Notification: Performance of pre-optimization done (n=28): time 2.725e-06/0.5876, allocations: 0 / 0.5497 GB, free: 0.6523 MB / 362.7 MB Notification: Performance of matching and sorting (n=28): time 0.001119/0.5887, allocations: 480.6 kB / 0.5501 GB, free: 300 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001463/0.5889, allocations: 250.7 kB / 0.5504 GB, free: 16 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002103/0.591, allocations: 1.564 MB / 0.5519 GB, free: 14.82 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.844e-05/0.5911, allocations: 36.77 kB / 0.5519 GB, free: 14.78 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003743/0.5915, allocations: 433.9 kB / 0.5524 GB, free: 14.57 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.449e-05/0.5916, allocations: 99.38 kB / 0.5525 GB, free: 14.48 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.671e-05/0.5916, allocations: 3.438 kB / 0.5525 GB, free: 14.48 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001347/0.5918, allocations: 316.7 kB / 0.5528 GB, free: 14.17 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001821/0.592, allocations: 118.5 kB / 0.5529 GB, free: 14.11 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002602/0.5922, allocations: 218.3 kB / 0.5531 GB, free: 13.92 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002339/0.5925, allocations: 141.4 kB / 0.5532 GB, free: 13.84 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.028e-06/0.5925, allocations: 0 / 0.5532 GB, free: 13.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.001168/0.5937, allocations: 0.5143 MB / 0.5537 GB, free: 13.45 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.459e-05/0.5937, allocations: 16.02 kB / 0.5537 GB, free: 13.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.706e-06/0.5937, allocations: 4 kB / 0.5537 GB, free: 13.43 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006548/0.5944, allocations: 133 kB / 0.5539 GB, free: 13.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003261/0.5947, allocations: 75.14 kB / 0.5539 GB, free: 13.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002345/0.5971, allocations: 1.881 MB / 0.5558 GB, free: 11.58 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000569/0.5977, allocations: 55.28 kB / 0.5558 GB, free: 11.53 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.895e-05/0.5977, allocations: 8 kB / 0.5558 GB, free: 11.52 MB / 378.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.0001487/0.5978, allocations: 131.5 kB / 0.556 GB, free: 11.4 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001678/0.598, allocations: 106.7 kB / 0.5561 GB, free: 11.29 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001343/0.5994, allocations: 0.5362 MB / 0.5566 GB, free: 10.91 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.552e-06/0.5994, allocations: 7.984 kB / 0.5566 GB, free: 10.9 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.424e-06/0.5994, allocations: 192 / 0.5566 GB, free: 10.9 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.5994, allocations: 0 / 0.5566 GB, free: 10.9 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002894/0.6023, allocations: 1.573 MB / 0.5581 GB, free: 9.734 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.603e-06/0.6024, allocations: 4 kB / 0.5581 GB, free: 9.73 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003241/0.6027, allocations: 63.92 kB / 0.5582 GB, free: 9.668 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006296/0.6033, allocations: 136.5 kB / 0.5583 GB, free: 9.562 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.114e-05/0.6034, allocations: 11.38 kB / 0.5583 GB, free: 9.555 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002247/0.6056, allocations: 1.872 MB / 0.5602 GB, free: 7.887 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.6057, allocations: 0 / 0.5602 GB, free: 7.887 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001605/0.6073, allocations: 0.7609 MB / 0.5609 GB, free: 7.309 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005127/0.6078, allocations: 273.3 kB / 0.5612 GB, free: 7.062 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001101/0.6079, allocations: 11.5 kB / 0.5612 GB, free: 7.055 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004158/0.6084, allocations: 47.47 kB / 0.5612 GB, free: 7.016 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001159/0.6085, allocations: 35.33 kB / 0.5613 GB, free: 6.984 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.835e-05/0.6085, allocations: 15.8 kB / 0.5613 GB, free: 6.973 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001769/0.6103, allocations: 1.226 MB / 0.5625 GB, free: 6.086 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.6103, allocations: 4 kB / 0.5625 GB, free: 6.082 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006457/0.611, allocations: 177.2 kB / 0.5626 GB, free: 5.922 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 (25): * Single equations (assignments): 24 * 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.002258/0.6132, allocations: 1.536 MB / 0.5641 GB, free: 4.461 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001008/0.6143, allocations: 474.8 kB / 0.5646 GB, free: 3.984 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.6143, allocations: 0 / 0.5646 GB, free: 3.984 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005767/0.6149, allocations: 314.7 kB / 0.5649 GB, free: 3.664 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000588/0.6155, allocations: 72.41 kB / 0.565 GB, free: 3.59 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003602/0.6191, allocations: 1.758 MB / 0.5667 GB, free: 1.781 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007609/0.6199, allocations: 1.092 MB / 0.5677 GB, free: 0.6641 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003867/0.6203, allocations: 149.1 kB / 0.5679 GB, free: 0.5195 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004895/0.6208, allocations: 327.3 kB / 0.5682 GB, free: 204 kB / 378.7 MB Notification: Performance of SimCode: time 9.21e-07/0.6208, allocations: 0 / 0.5682 GB, free: 204 kB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04164/0.6624, allocations: 19.97 MB / 0.5877 GB, free: 12.33 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000188/0.6627, allocations: 224.8 kB / 0.5879 GB, free: 12.11 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.333/2.995, allocations: 0 / 0.5879 GB, free: 12.11 MB / 410.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)