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.002265/0.002265, allocations: 177.3 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.418/1.418, allocations: 223.2 MB / 239.7 MB, free: 1.832 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.00104/0.00104, allocations: 102.5 kB / 290.9 MB, free: 13.96 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.06883/0.06883, allocations: 8.111 MB / 350.1 MB, free: 2.734 MB / 282.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003526/0.0003527, allocations: 9.25 kB / 413.2 MB, free: 89.62 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.1172, allocations: 52.53 MB / 465.7 MB, free: 42 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.344/0.4612, allocations: 83.92 MB / 0.5367 GB, free: 16.3 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002036/0.4615, allocations: 76.33 kB / 0.5368 GB, free: 16.3 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03517/0.4967, allocations: 14.85 MB / 0.5513 GB, free: 30.7 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.377e-06/0.4967, allocations: 0 / 0.5513 GB, free: 30.7 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001192/0.4969, allocations: 13.5 kB / 0.5513 GB, free: 30.7 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.004395/0.5013, allocations: 1.332 MB / 0.5526 GB, free: 29.91 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.865e-05/0.5013, allocations: 9.781 kB / 0.5526 GB, free: 29.91 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000217/0.5016, allocations: 64.53 kB / 0.5527 GB, free: 29.87 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005222/0.5021, allocations: 106.5 kB / 0.5528 GB, free: 29.81 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001994/0.5041, allocations: 0.8674 MB / 0.5536 GB, free: 29.48 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.499e-05/0.5042, allocations: 79.28 kB / 0.5537 GB, free: 29.42 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.628e-05/0.5043, allocations: 28.67 kB / 0.5537 GB, free: 29.42 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000867/0.5051, allocations: 457.7 kB / 0.5542 GB, free: 29.31 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/0.5052, allocations: 4 kB / 0.5542 GB, free: 29.3 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.137e-05/0.5052, allocations: 11.62 kB / 0.5542 GB, free: 29.3 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.019e-05/0.5052, allocations: 6.406 kB / 0.5542 GB, free: 29.3 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006571/0.5059, allocations: 325 kB / 0.5545 GB, free: 29.3 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003833/0.5097, allocations: 2.246 MB / 0.5567 GB, free: 28.64 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00101/0.5108, allocations: 495.3 kB / 0.5572 GB, free: 28.51 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.481e-05/0.5108, allocations: 9.297 kB / 0.5572 GB, free: 28.51 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.894e-05/0.5109, allocations: 42.02 kB / 0.5572 GB, free: 28.46 MB / 378.7 MB Notification: Performance of pre-optimization done (n=28): time 3.327e-06/0.5109, allocations: 7.938 kB / 0.5572 GB, free: 28.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=28): time 0.002383/0.5133, allocations: 0.8474 MB / 0.5581 GB, free: 28.25 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.33e-05/0.5134, allocations: 235.5 kB / 0.5583 GB, free: 27.97 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002328/0.5157, allocations: 1.583 MB / 0.5598 GB, free: 27.82 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.71e-05/0.5158, allocations: 30.77 kB / 0.5599 GB, free: 27.79 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004245/0.5162, allocations: 443.7 kB / 0.5603 GB, free: 27.67 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.512e-05/0.5163, allocations: 97.64 kB / 0.5604 GB, free: 27.61 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.683e-05/0.5163, allocations: 5.125 kB / 0.5604 GB, free: 27.61 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001299/0.5164, allocations: 316.8 kB / 0.5607 GB, free: 27.3 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003132/0.5168, allocations: 152.8 kB / 0.5608 GB, free: 27.3 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003805/0.5172, allocations: 244.8 kB / 0.5611 GB, free: 27.21 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003461/0.5175, allocations: 165 kB / 0.5612 GB, free: 27.2 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.5175, allocations: 0 / 0.5612 GB, free: 27.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0013/0.5188, allocations: 0.5867 MB / 0.5618 GB, free: 27.09 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.327e-05/0.5189, allocations: 9.453 kB / 0.5618 GB, free: 27.08 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.368e-06/0.5189, allocations: 4.797 kB / 0.5618 GB, free: 27.08 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006802/0.5196, allocations: 141.9 kB / 0.5619 GB, free: 27.07 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003064/0.5199, allocations: 66.39 kB / 0.562 GB, free: 27.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002512/0.5224, allocations: 1.919 MB / 0.5639 GB, free: 25.78 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004747/0.5229, allocations: 51.72 kB / 0.5639 GB, free: 25.76 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.84e-05/0.5229, allocations: 14.42 kB / 0.5639 GB, free: 25.76 MB / 378.7 MB Warning: Assuming fixed start value for the following 1 variables: bat.battery.integrator.q:VARIABLE(start = bat.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: 3 * 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 (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.0006679/0.5236, allocations: 398.6 kB / 0.5643 GB, free: 25.64 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001913/0.5238, allocations: 101.9 kB / 0.5644 GB, free: 25.59 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001475/0.5253, allocations: 0.6036 MB / 0.565 GB, free: 25.52 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.5253, allocations: 4.094 kB / 0.565 GB, free: 25.52 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.623e-06/0.5253, allocations: 0 / 0.565 GB, free: 25.52 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.83e-06/0.5253, allocations: 0 / 0.565 GB, free: 25.52 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002774/0.5281, allocations: 1.617 MB / 0.5666 GB, free: 25.16 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.5281, allocations: 3.953 kB / 0.5666 GB, free: 25.16 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002902/0.5284, allocations: 61.78 kB / 0.5667 GB, free: 25.16 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005942/0.529, allocations: 145.2 kB / 0.5668 GB, free: 25.14 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.655e-05/0.5291, allocations: 6.031 kB / 0.5668 GB, free: 25.14 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002274/0.5314, allocations: 1.908 MB / 0.5687 GB, free: 23.86 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/0.5314, allocations: 1 kB / 0.5687 GB, free: 23.86 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001896/0.5333, allocations: 0.8458 MB / 0.5695 GB, free: 23.64 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005375/0.5338, allocations: 277.4 kB / 0.5698 GB, free: 23.49 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.867e-05/0.5339, allocations: 10.84 kB / 0.5698 GB, free: 23.49 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004148/0.5344, allocations: 40.92 kB / 0.5698 GB, free: 23.49 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001133/0.5345, allocations: 32.03 kB / 0.5698 GB, free: 23.49 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.749e-05/0.5345, allocations: 10.09 kB / 0.5699 GB, free: 23.49 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002175/0.5367, allocations: 1.249 MB / 0.5711 GB, free: 23.37 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5367, allocations: 0 / 0.5711 GB, free: 23.37 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008312/0.5375, allocations: 181.7 kB / 0.5712 GB, free: 23.35 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (bat.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 (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.002969/0.5405, allocations: 1.587 MB / 0.5728 GB, free: 22.55 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001356/0.5419, allocations: 0.5249 MB / 0.5733 GB, free: 22.41 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.5419, allocations: 0 / 0.5733 GB, free: 22.41 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007363/0.5426, allocations: 349.3 kB / 0.5736 GB, free: 22.28 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005455/0.5432, allocations: 75.11 kB / 0.5737 GB, free: 22.27 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01261/0.5558, allocations: 7.479 MB / 0.581 GB, free: 19.71 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007353/0.5566, allocations: 1.088 MB / 0.5821 GB, free: 18.86 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004001/0.557, allocations: 149.8 kB / 0.5822 GB, free: 18.81 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000438/0.5575, allocations: 325.3 kB / 0.5825 GB, free: 18.78 MB / 378.7 MB Notification: Performance of SimCode: time 1.353e-06/0.5575, allocations: 0 / 0.5825 GB, free: 18.78 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03895/0.5964, allocations: 20.21 MB / 0.6023 GB, free: 9.434 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002698/0.5968, allocations: 261.2 kB / 0.6025 GB, free: 9.102 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.61/3.207, allocations: 4 kB / 0.6025 GB, free: 9.098 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)