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.001462/0.001462, allocations: 177.6 kB / 8.048 MB, free: 1.027 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.401/1.401, allocations: 221.5 MB / 230 MB, free: 7.559 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.0008884/0.0008881, allocations: 105.7 kB / 280.9 MB, free: 5.289 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.04877/0.04877, allocations: 8.101 MB / 339.8 MB, free: 6.984 MB / 234.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 2.401e-05/2.402e-05, allocations: 5.469 kB / 398.6 MB, free: 49.16 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09775/0.09779, allocations: 52.52 MB / 451.1 MB, free: 5.262 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1198/0.2176, allocations: 84.48 MB / 0.523 GB, free: 0.6641 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000333/0.218, allocations: 67.97 kB / 0.5231 GB, free: 0.5977 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3185/0.5366, allocations: 23.37 MB / 0.5459 GB, free: 71.58 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.5366, allocations: 0 / 0.5459 GB, free: 71.58 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.588e-05/0.5366, allocations: 16 kB / 0.5459 GB, free: 71.57 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: 144 * Number of variables: 144 Notification: Performance of Generate backend data structure: time 0.002982/0.5396, allocations: 1.397 MB / 0.5473 GB, free: 70.13 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.835e-05/0.5397, allocations: 15.98 kB / 0.5473 GB, free: 70.11 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003479/0.54, allocations: 150.3 kB / 0.5474 GB, free: 69.96 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00146/0.5415, allocations: 0.9813 MB / 0.5484 GB, free: 68.95 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001657/0.5417, allocations: 165.8 kB / 0.5486 GB, free: 68.76 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.827e-05/0.5418, allocations: 32 kB / 0.5486 GB, free: 68.73 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001014/0.5428, allocations: 0.6469 MB / 0.5492 GB, free: 68.08 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009863/0.5438, allocations: 0.7394 MB / 0.55 GB, free: 67.31 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.822e-05/0.5438, allocations: 0 / 0.55 GB, free: 67.31 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.933e-05/0.5439, allocations: 0 / 0.55 GB, free: 67.31 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.088e-05/0.5439, allocations: 12 kB / 0.55 GB, free: 67.3 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005448/0.5494, allocations: 4.189 MB / 0.5541 GB, free: 62.88 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00145/0.5509, allocations: 1.182 MB / 0.5552 GB, free: 61.63 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000557/0.5514, allocations: 495.2 kB / 0.5557 GB, free: 61.14 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.467e-05/0.5515, allocations: 21.45 kB / 0.5557 GB, free: 61.13 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.707e-05/0.5516, allocations: 43.34 kB / 0.5557 GB, free: 61.08 MB / 362.7 MB Notification: Performance of pre-optimization done (n=83): time 3.076e-06/0.5516, allocations: 0 / 0.5557 GB, free: 61.08 MB / 362.7 MB Notification: Performance of matching and sorting (n=83): time 0.003362/0.5549, allocations: 1.401 MB / 0.5571 GB, free: 59.67 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.456e-05/0.555, allocations: 240.1 kB / 0.5573 GB, free: 59.38 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001804/0.5568, allocations: 1.589 MB / 0.5589 GB, free: 57.78 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.854e-05/0.5569, allocations: 25.7 kB / 0.5589 GB, free: 57.75 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003568/0.5573, allocations: 0.4979 MB / 0.5594 GB, free: 57.24 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001516/0.5574, allocations: 268 kB / 0.5597 GB, free: 56.98 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.109e-05/0.5575, allocations: 0 / 0.5597 GB, free: 56.98 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.451e-05/0.5575, allocations: 330.5 kB / 0.56 GB, free: 56.65 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003991/0.5579, allocations: 345.5 kB / 0.5603 GB, free: 56.31 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000449/0.5584, allocations: 447.5 kB / 0.5607 GB, free: 55.84 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008674/0.5593, allocations: 397.2 kB / 0.5611 GB, free: 55.46 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.5593, allocations: 3.953 kB / 0.5611 GB, free: 55.46 MB / 362.7 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.003116/0.5624, allocations: 1.42 MB / 0.5625 GB, free: 54.02 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.019e-05/0.5625, allocations: 4 kB / 0.5625 GB, free: 54.02 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.5625, allocations: 0 / 0.5625 GB, free: 54.02 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002437/0.5649, allocations: 0.7574 MB / 0.5632 GB, free: 53.25 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004203/0.5653, allocations: 103.9 kB / 0.5633 GB, free: 53.15 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001956/0.5673, allocations: 1.479 MB / 0.5648 GB, free: 51.64 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008185/0.5681, allocations: 71.5 kB / 0.5649 GB, free: 51.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.766e-05/0.5682, allocations: 27.98 kB / 0.5649 GB, free: 51.55 MB / 362.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 Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bat.terminal.i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real bat.terminal.i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real load.terminal.i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real load.terminal.i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" 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 (brk1.BrkOpen) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 52 * 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 22} Notification: Performance of prepare postOptimizeDAE: time 0.0002252/0.5684, allocations: 125.8 kB / 0.565 GB, free: 51.42 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003166/0.5716, allocations: 1.393 MB / 0.5664 GB, free: 50.02 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001967/0.5718, allocations: 126.4 kB / 0.5665 GB, free: 49.89 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002306/0.5741, allocations: 1.307 MB / 0.5678 GB, free: 48.57 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.646e-06/0.5742, allocations: 8 kB / 0.5678 GB, free: 48.57 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.5742, allocations: 0 / 0.5678 GB, free: 48.57 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.826e-06/0.5742, allocations: 3.984 kB / 0.5678 GB, free: 48.56 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00417/0.5784, allocations: 3.086 MB / 0.5708 GB, free: 45.45 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.5784, allocations: 0 / 0.5708 GB, free: 45.45 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003862/0.5788, allocations: 99.91 kB / 0.5709 GB, free: 45.35 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002323/0.5811, allocations: 0.738 MB / 0.5716 GB, free: 44.61 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.714e-05/0.5812, allocations: 11.94 kB / 0.5716 GB, free: 44.6 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001864/0.5831, allocations: 1.468 MB / 0.573 GB, free: 43.1 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.407e-06/0.5831, allocations: 0 / 0.573 GB, free: 43.1 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002757/0.5858, allocations: 1.857 MB / 0.5749 GB, free: 41.22 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004771/0.5863, allocations: 311.4 kB / 0.5752 GB, free: 40.89 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000158/0.5865, allocations: 4 kB / 0.5752 GB, free: 40.89 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006168/0.5871, allocations: 44.02 kB / 0.5752 GB, free: 40.85 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001432/0.5873, allocations: 76.62 kB / 0.5753 GB, free: 40.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.279e-05/0.5873, allocations: 23.98 kB / 0.5753 GB, free: 40.75 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001526/0.5889, allocations: 1.224 MB / 0.5765 GB, free: 39.52 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5889, allocations: 0 / 0.5765 GB, free: 39.52 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007689/0.5897, allocations: 231.7 kB / 0.5767 GB, free: 39.29 MB / 362.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: 1 (brk1.BrkOpen) * Number of discrete 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 21} Notification: Performance of Backend phase and start with SimCode phase: time 0.003234/0.5929, allocations: 2.629 MB / 0.5793 GB, free: 36.67 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002902/0.5958, allocations: 1.164 MB / 0.5804 GB, free: 35.5 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.741e-06/0.5958, allocations: 0 / 0.5804 GB, free: 35.5 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002209/0.5981, allocations: 0.7752 MB / 0.5812 GB, free: 34.73 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001078/0.5991, allocations: 80.59 kB / 0.5812 GB, free: 34.65 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005033/0.6042, allocations: 2.18 MB / 0.5834 GB, free: 32.42 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007027/0.6049, allocations: 1.201 MB / 0.5845 GB, free: 31.19 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0005676/0.6055, allocations: 187.2 kB / 0.5847 GB, free: 31 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005238/0.6061, allocations: 439.2 kB / 0.5851 GB, free: 30.57 MB / 362.7 MB Notification: Performance of SimCode: time 1.603e-06/0.6061, allocations: 0 / 0.5851 GB, free: 30.57 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06371/0.6698, allocations: 24.4 MB / 0.609 GB, free: 6.176 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00016/0.67, allocations: 166.3 kB / 0.6091 GB, free: 5.988 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.511/3.181, allocations: 3.938 kB / 0.6091 GB, free: 5.984 MB / 362.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)