Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.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.LoadRescuedByBattery,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_UsingBatteries_LoadRescuedByBattery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_UsingBatteries_LoadRescuedByBattery",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.001025/0.001025, allocations: 180.6 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.394/1.394, allocations: 223.2 MB / 239.7 MB, free: 1.773 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.001184/0.001183, allocations: 107.8 kB / 290.9 MB, free: 13.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.05826/0.05826, allocations: 8.1 MB / 350.1 MB, free: 2.719 MB / 282.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003223/0.0003224, allocations: 12.75 kB / 413.2 MB, free: 89.57 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0993/0.09964, allocations: 52.53 MB / 465.7 MB, free: 41.95 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3495/0.4492, allocations: 85.21 MB / 0.538 GB, free: 16.75 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002316/0.4495, allocations: 69.52 kB / 0.5381 GB, free: 16.75 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05685/0.5063, allocations: 23.77 MB / 0.5613 GB, free: 30.32 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.685e-06/0.5064, allocations: 3.938 kB / 0.5613 GB, free: 30.32 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.767e-05/0.5064, allocations: 17.88 kB / 0.5613 GB, free: 30.32 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: 144 * Number of variables: 144 Notification: Performance of Generate backend data structure: time 0.004363/0.5108, allocations: 1.693 MB / 0.563 GB, free: 29.39 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.325e-05/0.5109, allocations: 8.406 kB / 0.563 GB, free: 29.39 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001946/0.5111, allocations: 102 kB / 0.5631 GB, free: 29.34 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003126/0.5114, allocations: 151.3 kB / 0.5632 GB, free: 29.26 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001702/0.5131, allocations: 0.9863 MB / 0.5642 GB, free: 28.81 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001423/0.5133, allocations: 187.4 kB / 0.5643 GB, free: 28.65 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001034/0.5134, allocations: 62.23 kB / 0.5644 GB, free: 28.64 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001549/0.5149, allocations: 0.8597 MB / 0.5652 GB, free: 28.39 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.773e-05/0.515, allocations: 0 / 0.5652 GB, free: 28.39 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.356e-05/0.515, allocations: 24.81 kB / 0.5653 GB, free: 28.39 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.331e-05/0.5151, allocations: 13.97 kB / 0.5653 GB, free: 28.39 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001322/0.5164, allocations: 0.7342 MB / 0.566 GB, free: 28.29 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006446/0.5229, allocations: 4.301 MB / 0.5702 GB, free: 26.06 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002228/0.5251, allocations: 1.309 MB / 0.5715 GB, free: 25.64 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001046/0.5253, allocations: 19.25 kB / 0.5715 GB, free: 25.63 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.261e-05/0.5253, allocations: 46.88 kB / 0.5715 GB, free: 25.59 MB / 378.7 MB Notification: Performance of pre-optimization done (n=85): time 3.386e-06/0.5253, allocations: 5.156 kB / 0.5715 GB, free: 25.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=85): time 0.01172/0.5371, allocations: 3.234 MB / 0.5747 GB, free: 24.49 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001784/0.5373, allocations: 240.1 kB / 0.5749 GB, free: 24.21 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003173/0.5405, allocations: 1.648 MB / 0.5765 GB, free: 23.85 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002302/0.5407, allocations: 48.14 kB / 0.5766 GB, free: 23.81 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004463/0.5412, allocations: 494 kB / 0.5771 GB, free: 23.64 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002838/0.5415, allocations: 288.7 kB / 0.5773 GB, free: 23.43 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.364e-05/0.5415, allocations: 14.19 kB / 0.5774 GB, free: 23.43 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001869/0.5417, allocations: 339.9 kB / 0.5777 GB, free: 23.11 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006912/0.5424, allocations: 401.2 kB / 0.5781 GB, free: 23.07 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007649/0.5432, allocations: 0.4974 MB / 0.5785 GB, free: 22.93 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007243/0.5439, allocations: 434 kB / 0.579 GB, free: 22.89 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.339e-06/0.544, allocations: 0 / 0.579 GB, free: 22.89 MB / 378.7 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.003693/0.5477, allocations: 1.56 MB / 0.5805 GB, free: 22.52 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.73e-05/0.5477, allocations: 7.781 kB / 0.5805 GB, free: 22.52 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.203e-05/0.5477, allocations: 0 / 0.5805 GB, free: 22.52 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002733/0.5505, allocations: 0.8231 MB / 0.5813 GB, free: 22.29 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004271/0.5509, allocations: 101.6 kB / 0.5814 GB, free: 22.26 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002494/0.5534, allocations: 1.496 MB / 0.5829 GB, free: 21.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001167/0.5546, allocations: 81.05 kB / 0.5829 GB, free: 21.58 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.109e-05/0.5547, allocations: 26.55 kB / 0.583 GB, free: 21.58 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: 2 * Number of states: 0 () * Number of discrete variables: 1 (brk1.BrkOpen) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 51 * 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 {16 23} Notification: Performance of prepare postOptimizeDAE: time 0.0009837/0.5557, allocations: 445 kB / 0.5834 GB, free: 21.42 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003385/0.556, allocations: 128.7 kB / 0.5835 GB, free: 21.35 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003339/0.5594, allocations: 1.637 MB / 0.5851 GB, free: 20.97 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.938e-06/0.5594, allocations: 19.53 kB / 0.5851 GB, free: 20.96 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.5594, allocations: 0 / 0.5851 GB, free: 20.96 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.024e-05/0.5594, allocations: 3.984 kB / 0.5851 GB, free: 20.96 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004714/0.5642, allocations: 3.094 MB / 0.5881 GB, free: 20.05 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.059e-06/0.5642, allocations: 0 / 0.5881 GB, free: 20.05 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004171/0.5646, allocations: 105.6 kB / 0.5882 GB, free: 20.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002712/0.5673, allocations: 0.7816 MB / 0.589 GB, free: 19.8 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.998e-05/0.5674, allocations: 28.23 kB / 0.589 GB, free: 19.79 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002342/0.5698, allocations: 1.478 MB / 0.5905 GB, free: 19.16 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.5698, allocations: 0 / 0.5905 GB, free: 19.16 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00345/0.5733, allocations: 2.076 MB / 0.5925 GB, free: 18.4 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007117/0.574, allocations: 304 kB / 0.5928 GB, free: 18.17 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001696/0.5742, allocations: 19.86 kB / 0.5928 GB, free: 18.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006173/0.5748, allocations: 67.11 kB / 0.5929 GB, free: 18.12 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001616/0.575, allocations: 64.05 kB / 0.5929 GB, free: 18.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.978e-05/0.575, allocations: 35.39 kB / 0.593 GB, free: 18.07 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001708/0.5767, allocations: 1.293 MB / 0.5942 GB, free: 17.41 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.5768, allocations: 0 / 0.5942 GB, free: 17.41 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007714/0.5775, allocations: 267.9 kB / 0.5945 GB, free: 17.37 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: 1 (brk1.BrkOpen) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 56 * 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 {16 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.003998/0.5815, allocations: 2.824 MB / 0.5972 GB, free: 15.59 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003128/0.5847, allocations: 1.307 MB / 0.5985 GB, free: 15.02 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.5847, allocations: 8 kB / 0.5985 GB, free: 15.01 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002241/0.587, allocations: 0.8573 MB / 0.5994 GB, free: 14.65 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009193/0.5879, allocations: 87.22 kB / 0.5995 GB, free: 14.6 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0233/0.6112, allocations: 9.82 MB / 0.609 GB, free: 7.211 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001312/0.6126, allocations: 1.201 MB / 0.6102 GB, free: 5.98 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001014/0.6136, allocations: 187.2 kB / 0.6104 GB, free: 5.793 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008387/0.6145, allocations: 447.3 kB / 0.6108 GB, free: 5.359 MB / 378.7 MB Notification: Performance of SimCode: time 1.944e-06/0.6145, allocations: 0 / 0.6108 GB, free: 5.359 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06787/0.6824, allocations: 27.33 MB / 0.6375 GB, free: 10.18 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003344/0.6828, allocations: 252.6 kB / 0.6377 GB, free: 9.848 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.664/3.347, allocations: 0 / 0.6377 GB, free: 9.848 MB / 410.7 MB (rm -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_UsingBatteries_LoadRescuedByBattery_fmu --startTime=0 --stopTime=21600 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_UsingBatteries_LoadRescuedByBattery.fmu > PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe 2>&1)