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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001362/0.001362, allocations: 107.3 kB / 16.45 MB, free: 6.449 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.001254/0.001254, allocations: 189 kB / 17.39 MB, free: 5.668 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.439/1.439, allocations: 222.9 MB / 241.1 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05019/0.05019, allocations: 8.102 MB / 299.3 MB, free: 6.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0019/0.0019, allocations: 67.88 kB / 414 MB, free: 22.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09481/0.09672, allocations: 51.51 MB / 465.5 MB, free: 2.648 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad): time 0.004794/0.1016, allocations: 3.135 MB / 468.6 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00195/0.1035, allocations: 1.175 MB / 469.8 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001612/0.1037, allocations: 4 kB / 469.8 MB, free: 14.31 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008946/0.1046, allocations: 446.7 kB / 470.3 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004929/0.1051, allocations: 266.8 kB / 470.5 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002085/0.1072, allocations: 0.9958 MB / 471.5 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006476/0.1079, allocations: 0.51 MB / 472 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002725/0.1082, allocations: 165.4 kB / 472.2 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002443/0.1084, allocations: 239.2 kB / 472.4 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005024/0.1089, allocations: 355 kB / 472.8 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.293e-05/0.109, allocations: 55.94 kB / 472.8 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005304/0.1096, allocations: 271.8 kB / 473.1 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003187/0.1099, allocations: 347.1 kB / 473.4 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004376/0.1104, allocations: 461.3 kB / 473.9 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001509/0.1119, allocations: 1.331 MB / 475.2 MB, free: 8.91 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.94e-06/0.1119, allocations: 0 / 475.2 MB, free: 8.91 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1119, allocations: 0 / 475.2 MB, free: 8.91 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.538e-05/0.1119, allocations: 4 kB / 475.2 MB, free: 8.906 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.003467/0.1154, allocations: 1.587 MB / 476.8 MB, free: 7.262 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.469e-05/0.1155, allocations: 11.89 kB / 476.8 MB, free: 7.25 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.429e-05/0.1156, allocations: 70.66 kB / 476.9 MB, free: 7.172 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001663/0.1157, allocations: 108.2 kB / 477 MB, free: 7.066 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001173/0.1169, allocations: 0.8806 MB / 477.9 MB, free: 6.133 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001011/0.117, allocations: 84.52 kB / 477.9 MB, free: 6.039 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.856e-05/0.1171, allocations: 28.38 kB / 478 MB, free: 6.012 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008132/0.1179, allocations: 452.8 kB / 478.4 MB, free: 5.543 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.255e-05/0.1179, allocations: 0 / 478.4 MB, free: 5.543 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.088e-05/0.118, allocations: 12 kB / 478.4 MB, free: 5.531 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.366e-05/0.118, allocations: 8 kB / 478.4 MB, free: 5.523 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006651/0.1187, allocations: 326.1 kB / 478.8 MB, free: 5.203 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003257/0.122, allocations: 2.124 MB / 480.9 MB, free: 2.957 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001089/0.1231, allocations: 477.2 kB / 481.3 MB, free: 2.465 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004723/0.1235, allocations: 217.1 kB / 481.6 MB, free: 2.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001481/0.1237, allocations: 93.33 kB / 481.6 MB, free: 2.141 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.167e-05/0.1237, allocations: 38.8 kB / 481.7 MB, free: 2.094 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.764e-06/0.1237, allocations: 0 / 481.7 MB, free: 2.094 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.002466/0.1262, allocations: 0.8291 MB / 482.5 MB, free: 1.238 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001536/0.1264, allocations: 235.3 kB / 482.7 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002225/0.1286, allocations: 1.741 MB / 484.5 MB, free: 15.19 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.134e-05/0.1287, allocations: 33.7 kB / 484.5 MB, free: 15.15 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004341/0.1291, allocations: 445 kB / 485 MB, free: 14.71 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.83e-05/0.1292, allocations: 95.17 kB / 485 MB, free: 14.62 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001431/0.1294, allocations: 73.44 kB / 485.1 MB, free: 14.54 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.1295, allocations: 321.9 kB / 485.4 MB, free: 14.22 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003496/0.1299, allocations: 147.9 kB / 485.6 MB, free: 14.08 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004461/0.1303, allocations: 254 kB / 485.8 MB, free: 13.8 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003829/0.1342, allocations: 0.9423 MB / 486.8 MB, free: 12.84 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.1342, allocations: 0 / 486.8 MB, free: 12.84 MB / 366.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001598/0.1358, allocations: 0.6066 MB / 487.4 MB, free: 12.23 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.1358, allocations: 8 kB / 487.4 MB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.525e-06/0.1359, allocations: 0 / 487.4 MB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000699/0.1366, allocations: 152.6 kB / 487.5 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003364/0.1369, allocations: 71.95 kB / 487.6 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002784/0.1397, allocations: 2.032 MB / 489.6 MB, free: 9.824 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004926/0.1402, allocations: 55.8 kB / 489.7 MB, free: 9.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.141e-05/0.1402, allocations: 15.94 kB / 489.7 MB, free: 9.754 MB / 366.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: 4 * 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 (33): * Single equations (assignments): 32 * 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 {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0006032/0.1409, allocations: 401.1 kB / 490.1 MB, free: 9.355 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002162/0.1411, allocations: 99.53 kB / 490.2 MB, free: 9.258 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001491/0.1426, allocations: 0.5935 MB / 490.8 MB, free: 8.652 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.013e-06/0.1426, allocations: 3.938 kB / 490.8 MB, free: 8.648 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.874e-06/0.1426, allocations: 8 kB / 490.8 MB, free: 8.641 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.1426, allocations: 0 / 490.8 MB, free: 8.641 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002571/0.1452, allocations: 1.467 MB / 492.3 MB, free: 7.113 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.616e-06/0.1452, allocations: 0 / 492.3 MB, free: 7.113 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002778/0.1455, allocations: 59.91 kB / 492.3 MB, free: 7.055 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00066/0.1462, allocations: 148.7 kB / 492.5 MB, free: 6.906 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.585e-05/0.1462, allocations: 4 kB / 492.5 MB, free: 6.902 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002629/0.1488, allocations: 2.02 MB / 494.5 MB, free: 4.738 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.1489, allocations: 3.938 kB / 494.5 MB, free: 4.734 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001906/0.1508, allocations: 0.842 MB / 495.3 MB, free: 3.871 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003447/0.1511, allocations: 248.4 kB / 495.6 MB, free: 3.609 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.952e-05/0.1512, allocations: 4 kB / 495.6 MB, free: 3.605 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003905/0.1516, allocations: 35.91 kB / 495.6 MB, free: 3.57 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001094/0.1518, allocations: 35.95 kB / 495.7 MB, free: 3.535 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.411e-05/0.1518, allocations: 8.062 kB / 495.7 MB, free: 3.527 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001811/0.1536, allocations: 1.264 MB / 496.9 MB, free: 2.254 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1536, allocations: 3.938 kB / 496.9 MB, free: 2.25 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006439/0.1543, allocations: 155.8 kB / 497.1 MB, free: 2.098 MB / 366.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: 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 (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 {(2,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00292/0.1572, allocations: 1.543 MB / 498.6 MB, free: 0.6016 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001255/0.1585, allocations: 0.5179 MB / 499.1 MB, free: 72 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.1585, allocations: 7.875 kB / 499.2 MB, free: 64 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000751/0.1592, allocations: 347.2 kB / 499.5 MB, free: 15.71 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000657/0.1599, allocations: 86.98 kB / 499.6 MB, free: 15.63 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01585/0.1758, allocations: 10.15 MB / 0.4978 GB, free: 5.312 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009439/0.1768, allocations: 1.072 MB / 0.4988 GB, free: 4.215 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003741/0.1772, allocations: 133.1 kB / 0.499 GB, free: 4.082 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004807/0.1776, allocations: 327.3 kB / 0.4993 GB, free: 3.762 MB / 382.1 MB Notification: Performance of SimCode: time 1.062e-06/0.1776, allocations: 0 / 0.4993 GB, free: 3.762 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2482/0.4259, allocations: 20.81 MB / 0.5196 GB, free: 41.51 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.67/14.1, allocations: 22.12 kB / 0.5196 GB, free: 41.5 MB / 382.1 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/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)