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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/PowerSysPro 2.3.1-master/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001114/0.001114, allocations: 108.3 kB / 16.45 MB, free: 6.438 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001214/0.001214, allocations: 186.9 kB / 17.39 MB, free: 5.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.267/1.267, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04142/0.04142, allocations: 8.103 MB / 299.3 MB, free: 6.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001385/0.001386, allocations: 59.91 kB / 414 MB, free: 22.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08504/0.08643, allocations: 51.53 MB / 465.5 MB, free: 2.746 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery): time 0.005493/0.09197, allocations: 4.692 MB / 470.2 MB, free: 14.03 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002432/0.09443, allocations: 1.431 MB / 471.6 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005099/0.09497, allocations: 12 kB / 471.6 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00108/0.09609, allocations: 0.5019 MB / 472.1 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001058/0.09717, allocations: 421.8 kB / 472.6 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002115/0.0993, allocations: 1.078 MB / 473.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001186/0.1005, allocations: 0.8482 MB / 474.5 MB, free: 9.734 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004985/0.101, allocations: 314.8 kB / 474.8 MB, free: 9.422 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000514/0.1015, allocations: 382.7 kB / 475.2 MB, free: 9.047 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008245/0.1024, allocations: 0.5685 MB / 475.7 MB, free: 8.477 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001985/0.1026, allocations: 80 kB / 475.8 MB, free: 8.398 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000684/0.1033, allocations: 307.8 kB / 476.1 MB, free: 8.098 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003422/0.1036, allocations: 430.8 kB / 476.5 MB, free: 7.676 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006605/0.1043, allocations: 0.606 MB / 477.1 MB, free: 7.066 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001893/0.1062, allocations: 1.672 MB / 478.8 MB, free: 5.391 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.1062, allocations: 4 kB / 478.8 MB, free: 5.387 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1062, allocations: 0 / 478.8 MB, free: 5.387 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.788e-05/0.1063, allocations: 0 / 478.8 MB, free: 5.387 MB / 350.1 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.005762/0.112, allocations: 2.111 MB / 480.9 MB, free: 3.215 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.244e-05/0.1121, allocations: 11.89 kB / 480.9 MB, free: 3.203 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001705/0.1123, allocations: 106.7 kB / 481 MB, free: 3.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003041/0.1126, allocations: 147.2 kB / 481.2 MB, free: 2.945 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001604/0.1142, allocations: 0.9822 MB / 482.2 MB, free: 1.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001578/0.1144, allocations: 194.4 kB / 482.4 MB, free: 1.691 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001254/0.1145, allocations: 64.36 kB / 482.4 MB, free: 1.629 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001422/0.1159, allocations: 0.8594 MB / 483.3 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.56e-05/0.116, allocations: 0 / 483.3 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.759e-05/0.116, allocations: 28 kB / 483.3 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.336e-05/0.1161, allocations: 12 kB / 483.3 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001204/0.1173, allocations: 0.7235 MB / 484 MB, free: 15.97 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005857/0.1231, allocations: 4.042 MB / 488.1 MB, free: 11.64 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001977/0.1252, allocations: 1.294 MB / 489.4 MB, free: 10.29 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008693/0.126, allocations: 0.5465 MB / 489.9 MB, free: 9.742 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.797e-05/0.1262, allocations: 24.97 kB / 490 MB, free: 9.719 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.19e-05/0.1262, allocations: 59.48 kB / 490 MB, free: 9.652 MB / 366.1 MB Notification: Performance of pre-optimization done (n=85): time 4.228e-06/0.1262, allocations: 3.984 kB / 490 MB, free: 9.648 MB / 366.1 MB Notification: Performance of matching and sorting (n=85): time 0.01071/0.1369, allocations: 3.13 MB / 493.1 MB, free: 6.488 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001135/0.1371, allocations: 252.3 kB / 493.4 MB, free: 6.188 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002621/0.1397, allocations: 1.809 MB / 495.2 MB, free: 4.363 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.255e-05/0.1398, allocations: 49.7 kB / 495.2 MB, free: 4.309 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003936/0.1402, allocations: 497.7 kB / 495.7 MB, free: 3.82 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002313/0.1405, allocations: 283.8 kB / 496 MB, free: 3.539 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002561/0.1407, allocations: 146.6 kB / 496.2 MB, free: 3.391 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000107/0.1408, allocations: 334 kB / 496.5 MB, free: 3.059 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007191/0.1416, allocations: 429.8 kB / 496.9 MB, free: 2.637 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000813/0.1424, allocations: 0.5345 MB / 497.4 MB, free: 2.074 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008741/0.1511, allocations: 2.588 MB / 0.4883 GB, free: 15.47 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.579e-06/0.1512, allocations: 0 / 0.4883 GB, free: 15.47 MB / 382.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.004282/0.1555, allocations: 1.714 MB / 0.49 GB, free: 13.75 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.343e-05/0.1555, allocations: 8 kB / 0.49 GB, free: 13.74 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.019e-05/0.1555, allocations: 0 / 0.49 GB, free: 13.74 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002737/0.1583, allocations: 0.8203 MB / 0.4908 GB, free: 12.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004607/0.1587, allocations: 115.9 kB / 0.4909 GB, free: 12.8 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002458/0.1612, allocations: 1.471 MB / 0.4923 GB, free: 11.3 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007668/0.162, allocations: 91.39 kB / 0.4924 GB, free: 11.21 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.262e-05/0.1621, allocations: 31.98 kB / 0.4925 GB, free: 11.18 MB / 382.1 MB Warning: Assuming fixed start value for the following 1 variables: bat.battery.integrator.q:VARIABLE(flow=false 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 (n.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(16,22)} Notification: Performance of prepare postOptimizeDAE: time 0.0007181/0.1628, allocations: 438.5 kB / 0.4929 GB, free: 10.74 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003057/0.1631, allocations: 118.5 kB / 0.493 GB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004078/0.1672, allocations: 1.768 MB / 0.4947 GB, free: 8.84 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.053e-05/0.1672, allocations: 8 kB / 0.4947 GB, free: 8.832 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.1673, allocations: 4 kB / 0.4947 GB, free: 8.828 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.097e-05/0.1673, allocations: 7.984 kB / 0.4947 GB, free: 8.82 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006375/0.1737, allocations: 3.384 MB / 0.498 GB, free: 5.375 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.23e-06/0.1737, allocations: 0 / 0.498 GB, free: 5.375 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003793/0.1741, allocations: 99.89 kB / 0.4981 GB, free: 5.277 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002647/0.1767, allocations: 0.781 MB / 0.4989 GB, free: 4.492 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.947e-05/0.1768, allocations: 20 kB / 0.4989 GB, free: 4.473 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002379/0.1792, allocations: 1.455 MB / 0.5003 GB, free: 2.992 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.1793, allocations: 0 / 0.5003 GB, free: 2.992 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004846/0.1841, allocations: 2.341 MB / 0.5026 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005848/0.1847, allocations: 275.4 kB / 0.5029 GB, free: 348 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002531/0.185, allocations: 19.94 kB / 0.5029 GB, free: 328 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006682/0.1857, allocations: 51.95 kB / 0.5029 GB, free: 276 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001716/0.1858, allocations: 72.95 kB / 0.503 GB, free: 200 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.341e-05/0.1859, allocations: 31.98 kB / 0.503 GB, free: 168 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.1873/0.3732, allocations: 1.298 MB / 0.5043 GB, free: 46.65 MB / 382.1 MB Notification: Performance of sort global known variables: time 6.71e-07/0.3732, allocations: 0 / 0.5043 GB, free: 46.65 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009767/0.3742, allocations: 246 kB / 0.5045 GB, free: 46.65 MB / 382.1 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 (n.y) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(16,21)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005532/0.3798, allocations: 3.07 MB / 0.5075 GB, free: 45.56 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003559/0.3833, allocations: 1.359 MB / 0.5089 GB, free: 45.13 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.91e-06/0.3834, allocations: 2.219 kB / 0.5089 GB, free: 45.13 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002583/0.386, allocations: 0.8609 MB / 0.5097 GB, free: 44.88 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008938/0.3869, allocations: 114 kB / 0.5098 GB, free: 44.81 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02232/0.4092, allocations: 13.72 MB / 0.5232 GB, free: 39.32 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00054/0.4098, allocations: 1.18 MB / 0.5244 GB, free: 38.54 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004008/0.4102, allocations: 173.8 kB / 0.5245 GB, free: 38.52 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004553/0.4107, allocations: 434.4 kB / 0.525 GB, free: 38.13 MB / 382.1 MB Notification: Performance of SimCode: time 1.012e-06/0.4107, allocations: 0 / 0.525 GB, free: 38.13 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04851/0.4592, allocations: 29.26 MB / 0.5535 GB, free: 9.52 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.29/12.75, allocations: 3.938 kB / 0.5535 GB, free: 9.516 MB / 382.1 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/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)