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.0009532/0.0009534, allocations: 181 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.465/1.465, allocations: 221.4 MB / 235.1 MB, free: 14.39 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.0009085/0.0009085, allocations: 94.97 kB / 286.1 MB, free: 12.99 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.04795/0.04795, allocations: 8.095 MB / 345.1 MB, free: 1.93 MB / 282.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 4.263e-05/4.266e-05, allocations: 4 kB / 405.6 MB, free: 61.87 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.1118, allocations: 52.51 MB / 458.1 MB, free: 9.367 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4096/0.5215, allocations: 85.4 MB / 0.5307 GB, free: 0.6914 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002208/0.5218, allocations: 66.66 kB / 0.5308 GB, free: 0.6602 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06785/0.5896, allocations: 23.73 MB / 0.554 GB, free: 13.15 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.5897, allocations: 4 kB / 0.554 GB, free: 13.15 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.012e-05/0.5897, allocations: 16 kB / 0.554 GB, free: 13.13 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.003248/0.593, allocations: 1.411 MB / 0.5554 GB, free: 11.79 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/0.593, allocations: 8.594 kB / 0.5554 GB, free: 11.78 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001393/0.5932, allocations: 100.3 kB / 0.5555 GB, free: 11.71 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002495/0.5934, allocations: 142.3 kB / 0.5556 GB, free: 11.57 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001589/0.595, allocations: 0.9814 MB / 0.5566 GB, free: 10.75 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001479/0.5952, allocations: 187.2 kB / 0.5568 GB, free: 10.55 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001053/0.5953, allocations: 60.95 kB / 0.5568 GB, free: 10.51 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001281/0.5966, allocations: 0.817 MB / 0.5576 GB, free: 9.957 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.625e-05/0.5966, allocations: 0 / 0.5576 GB, free: 9.957 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.463e-05/0.5967, allocations: 21.12 kB / 0.5576 GB, free: 9.953 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.648e-05/0.5967, allocations: 16 kB / 0.5577 GB, free: 9.938 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001004/0.5977, allocations: 0.6709 MB / 0.5583 GB, free: 9.547 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006027/0.6038, allocations: 4.304 MB / 0.5625 GB, free: 6.152 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001783/0.6056, allocations: 1.225 MB / 0.5637 GB, free: 5.137 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007682/0.6064, allocations: 0.5187 MB / 0.5642 GB, free: 4.617 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001042/0.6065, allocations: 16.75 kB / 0.5642 GB, free: 4.602 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.584e-05/0.6065, allocations: 51.28 kB / 0.5643 GB, free: 4.543 MB / 378.7 MB Notification: Performance of pre-optimization done (n=85): time 2.515e-06/0.6066, allocations: 0 / 0.5643 GB, free: 4.543 MB / 378.7 MB Notification: Performance of matching and sorting (n=85): time 0.003516/0.6101, allocations: 1.451 MB / 0.5657 GB, free: 3.074 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001412/0.6102, allocations: 248.1 kB / 0.5659 GB, free: 2.777 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002709/0.613, allocations: 1.633 MB / 0.5675 GB, free: 1.129 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001209/0.6131, allocations: 41.7 kB / 0.5676 GB, free: 1.082 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004473/0.6136, allocations: 498.1 kB / 0.568 GB, free: 0.5938 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002665/0.6138, allocations: 283.7 kB / 0.5683 GB, free: 320 kB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.568e-05/0.6139, allocations: 16 kB / 0.5683 GB, free: 304 kB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001979/0.6141, allocations: 337.9 kB / 0.5686 GB, free: 15.96 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008561/0.615, allocations: 357.5 kB / 0.569 GB, free: 15.61 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009783/0.616, allocations: 469.1 kB / 0.5694 GB, free: 15.12 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009149/0.6169, allocations: 382.8 kB / 0.5698 GB, free: 14.75 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.6169, allocations: 4 kB / 0.5698 GB, free: 14.75 MB / 394.7 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.004073/0.621, allocations: 1.37 MB / 0.5711 GB, free: 13.37 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.716e-05/0.6211, allocations: 4 kB / 0.5711 GB, free: 13.36 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.25e-05/0.6211, allocations: 0 / 0.5711 GB, free: 13.36 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003708/0.6248, allocations: 0.7731 MB / 0.5719 GB, free: 12.59 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006433/0.6255, allocations: 103.9 kB / 0.572 GB, free: 12.48 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003261/0.6287, allocations: 1.429 MB / 0.5734 GB, free: 11.02 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001188/0.6299, allocations: 75.64 kB / 0.5735 GB, free: 10.95 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001107/0.6301, allocations: 28.06 kB / 0.5735 GB, free: 10.92 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: 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.0003547/0.6304, allocations: 154.4 kB / 0.5736 GB, free: 10.77 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003497/0.6308, allocations: 130.3 kB / 0.5738 GB, free: 10.64 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003611/0.6344, allocations: 1.369 MB / 0.5751 GB, free: 9.25 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.096e-05/0.6345, allocations: 15.98 kB / 0.5751 GB, free: 9.234 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.408e-06/0.6345, allocations: 0 / 0.5751 GB, free: 9.234 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.603e-05/0.6345, allocations: 3.984 kB / 0.5751 GB, free: 9.23 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007745/0.6423, allocations: 3.267 MB / 0.5783 GB, free: 5.902 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.965e-06/0.6423, allocations: 0 / 0.5783 GB, free: 5.902 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005935/0.6429, allocations: 107.9 kB / 0.5784 GB, free: 5.797 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003368/0.6463, allocations: 0.7422 MB / 0.5791 GB, free: 5.051 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.145e-05/0.6464, allocations: 23.98 kB / 0.5792 GB, free: 5.027 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002391/0.6488, allocations: 1.417 MB / 0.5805 GB, free: 3.582 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.6488, allocations: 4 kB / 0.5806 GB, free: 3.578 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003472/0.6523, allocations: 1.96 MB / 0.5825 GB, free: 1.59 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005681/0.6529, allocations: 307.5 kB / 0.5828 GB, free: 1.27 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001542/0.653, allocations: 19.98 kB / 0.5828 GB, free: 1.25 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006173/0.6536, allocations: 59.97 kB / 0.5828 GB, free: 1.191 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001742/0.6538, allocations: 72.62 kB / 0.5829 GB, free: 1.121 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.174e-05/0.6539, allocations: 27.98 kB / 0.5829 GB, free: 1.094 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001871/0.6558, allocations: 1.276 MB / 0.5842 GB, free: 15.81 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.01e-07/0.6558, allocations: 0 / 0.5842 GB, free: 15.81 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0007684/0.6566, allocations: 267.7 kB / 0.5844 GB, free: 15.55 MB / 410.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 (59): * Single equations (assignments): 58 * 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.004128/0.6607, allocations: 2.771 MB / 0.5871 GB, free: 12.81 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003251/0.664, allocations: 1.202 MB / 0.5883 GB, free: 11.6 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.664, allocations: 4.125 kB / 0.5883 GB, free: 11.6 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002362/0.6664, allocations: 0.8118 MB / 0.5891 GB, free: 10.79 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007693/0.6672, allocations: 92.58 kB / 0.5892 GB, free: 10.7 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004671/0.6718, allocations: 2.278 MB / 0.5914 GB, free: 8.375 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008317/0.6727, allocations: 1.205 MB / 0.5926 GB, free: 7.141 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0004885/0.6732, allocations: 179.2 kB / 0.5928 GB, free: 6.961 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006183/0.6738, allocations: 439.3 kB / 0.5932 GB, free: 6.531 MB / 410.7 MB Notification: Performance of SimCode: time 1.172e-06/0.6738, allocations: 0 / 0.5932 GB, free: 6.531 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04823/0.7221, allocations: 27.07 MB / 0.6196 GB, free: 11.56 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001758/0.7223, allocations: 222.5 kB / 0.6198 GB, free: 11.33 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.61/3.332, allocations: 0 / 0.6198 GB, free: 11.33 MB / 442.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)