Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.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.Batteries.Examples.BatteryDischargeChargeFromMSL,fileNamePrefix="PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeChargeFromMSL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL,fileNamePrefix="PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeChargeFromMSL",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.0053/0.0053, allocations: 94.38 kB / 15.91 MB, free: 6.27 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.001297/0.001297, allocations: 195.8 kB / 16.83 MB, free: 6.184 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.279/1.279, allocations: 222.9 MB / 240.5 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.1525/0.1525, allocations: 8.086 MB / 298.7 MB, free: 2.082 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001158/0.001158, allocations: 63.91 kB / 361.1 MB, free: 13.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09607/0.09725, allocations: 51.52 MB / 412.7 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL): time 0.004564/0.1018, allocations: 3.386 MB / 416.1 MB, free: 6.66 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001828/0.1037, allocations: 1.314 MB / 417.4 MB, free: 5.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001512/0.1039, allocations: 4 kB / 417.4 MB, free: 5.336 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004957/0.1044, allocations: 155.3 kB / 417.5 MB, free: 5.184 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003184/0.1047, allocations: 155 kB / 417.7 MB, free: 5.031 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004334/0.1051, allocations: 215.7 kB / 417.9 MB, free: 4.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004948/0.1056, allocations: 0.522 MB / 418.4 MB, free: 4.297 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002382/0.1059, allocations: 148.8 kB / 418.5 MB, free: 4.148 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001928/0.1061, allocations: 183.3 kB / 418.7 MB, free: 3.969 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002506/0.1064, allocations: 222.9 kB / 418.9 MB, free: 3.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.337e-05/0.1064, allocations: 24 kB / 419 MB, free: 3.727 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001624/0.1066, allocations: 67.92 kB / 419 MB, free: 3.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001895/0.1068, allocations: 151.4 kB / 419.2 MB, free: 3.512 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002077/0.107, allocations: 238.7 kB / 419.4 MB, free: 3.277 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000538/0.1075, allocations: 0.619 MB / 420 MB, free: 2.656 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.354e-06/0.1076, allocations: 4 kB / 420 MB, free: 2.652 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.475e-06/0.1076, allocations: 3.984 kB / 420 MB, free: 2.648 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.623e-06/0.1076, allocations: 0 / 420 MB, free: 2.648 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: 65 * Number of variables: 65 Notification: Performance of Generate backend data structure: time 0.002092/0.1097, allocations: 1.005 MB / 421 MB, free: 1.594 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.1097, allocations: 8.031 kB / 421.1 MB, free: 1.586 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.476e-05/0.1098, allocations: 62.72 kB / 421.1 MB, free: 1.516 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.735e-05/0.1099, allocations: 56.28 kB / 421.2 MB, free: 1.461 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006255/0.1105, allocations: 494.4 kB / 421.7 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002471/0.1108, allocations: 64.75 kB / 421.7 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.175e-05/0.1108, allocations: 32 kB / 421.7 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007588/0.1116, allocations: 401.6 kB / 422.1 MB, free: 428 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.1116, allocations: 0 / 422.1 MB, free: 428 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.575e-05/0.1117, allocations: 12 kB / 422.2 MB, free: 416 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.113e-06/0.1117, allocations: 4 kB / 422.2 MB, free: 412 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005917/0.1123, allocations: 270 kB / 422.4 MB, free: 144 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002353/0.1146, allocations: 1.527 MB / 423.9 MB, free: 14.51 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007015/0.1154, allocations: 315.1 kB / 424.3 MB, free: 14.18 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002874/0.1157, allocations: 120.8 kB / 424.4 MB, free: 14.06 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.493e-05/0.1157, allocations: 0 / 424.4 MB, free: 14.06 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.939e-05/0.1157, allocations: 46.5 kB / 424.4 MB, free: 14 MB / 366.1 MB Notification: Performance of pre-optimization done (n=13): time 8.62e-07/0.1157, allocations: 0 / 424.4 MB, free: 14 MB / 366.1 MB Notification: Performance of matching and sorting (n=13): time 0.00098/0.1167, allocations: 337.2 kB / 424.7 MB, free: 13.67 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.878e-05/0.1168, allocations: 209.6 kB / 425 MB, free: 13.41 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006619/0.1175, allocations: 0.576 MB / 425.5 MB, free: 12.82 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.63e-05/0.1175, allocations: 29.7 kB / 425.6 MB, free: 12.79 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001805/0.1177, allocations: 263.7 kB / 425.8 MB, free: 12.52 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.094e-05/0.1178, allocations: 47.36 kB / 425.9 MB, free: 12.48 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.815e-05/0.1179, allocations: 45.7 kB / 425.9 MB, free: 12.43 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001312/0.118, allocations: 354.8 kB / 426.3 MB, free: 12.07 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002915/0.1183, allocations: 107.9 kB / 426.4 MB, free: 11.96 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000363/0.1187, allocations: 230.4 kB / 426.6 MB, free: 11.69 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004966/0.1192, allocations: 213.2 kB / 426.8 MB, free: 11.45 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/0.1192, allocations: 4 kB / 426.8 MB, free: 11.44 MB / 366.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0007954/0.12, allocations: 316.8 kB / 427.1 MB, free: 11.12 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.762e-05/0.12, allocations: 7.938 kB / 427.1 MB, free: 11.12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.12, allocations: 4.094 kB / 427.1 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.751e-05/0.1201, allocations: 7.938 kB / 427.1 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002362/0.1203, allocations: 52.3 kB / 427.2 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.205e-05/0.1203, allocations: 8 kB / 427.2 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005494/0.1209, allocations: 111.6 kB / 427.3 MB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.593e-05/0.1209, allocations: 8 kB / 427.3 MB, free: 10.93 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 3 (pulseSeries.on2,pulseSeries.on1,battery.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001935/0.1211, allocations: 193.7 kB / 427.5 MB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001089/0.1212, allocations: 47.47 kB / 427.5 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007142/0.122, allocations: 279.4 kB / 427.8 MB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-06/0.122, allocations: 4 kB / 427.8 MB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.264e-06/0.122, allocations: 7.984 kB / 427.8 MB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.122, allocations: 0 / 427.8 MB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00124/0.1232, allocations: 0.776 MB / 428.6 MB, free: 9.562 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.1233, allocations: 0 / 428.6 MB, free: 9.562 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001839/0.1234, allocations: 31.97 kB / 428.6 MB, free: 9.531 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.1235, allocations: 0 / 428.6 MB, free: 9.531 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.962e-05/0.1235, allocations: 8 kB / 428.6 MB, free: 9.523 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.1235, allocations: 0 / 428.6 MB, free: 9.523 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.1235, allocations: 0 / 428.6 MB, free: 9.523 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009882/0.1245, allocations: 0.4917 MB / 429.1 MB, free: 9.012 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001669/0.1247, allocations: 160.6 kB / 429.3 MB, free: 8.836 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.537e-05/0.1247, allocations: 4 kB / 429.3 MB, free: 8.832 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006268/0.1254, allocations: 103.8 kB / 429.4 MB, free: 8.73 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003074/0.1257, allocations: 123.8 kB / 429.5 MB, free: 8.609 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.289e-05/0.1257, allocations: 15.92 kB / 429.5 MB, free: 8.594 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000519/0.1262, allocations: 419.1 kB / 429.9 MB, free: 8.188 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1263, allocations: 4 kB / 429.9 MB, free: 8.184 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004164/0.1267, allocations: 99.75 kB / 430 MB, free: 8.086 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (battery.limIntegrator.y) * Number of discrete variables: 2 (pulseSeries.on1,pulseSeries.on2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002161/0.1288, allocations: 1.29 MB / 431.3 MB, free: 6.902 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006802/0.1295, allocations: 251 kB / 431.6 MB, free: 6.66 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.1296, allocations: 0 / 431.6 MB, free: 6.66 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000357/0.1299, allocations: 159.8 kB / 431.7 MB, free: 6.504 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005877/0.1305, allocations: 108.8 kB / 431.8 MB, free: 6.395 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006527/0.137, allocations: 4.543 MB / 436.4 MB, free: 1.703 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003966/0.1375, allocations: 0.8311 MB / 437.2 MB, free: 0.8477 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002342/0.1377, allocations: 67.23 kB / 437.3 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002248/0.138, allocations: 143.4 kB / 437.4 MB, free: 0.6406 MB / 366.1 MB Notification: Performance of SimCode: time 2.61e-07/0.138, allocations: 0 / 437.4 MB, free: 0.6406 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1779/0.3159, allocations: 11.06 MB / 448.5 MB, free: 56.57 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002022/0.3161, allocations: 248.2 kB / 448.7 MB, free: 56.32 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.879/2.195, allocations: 3.875 kB / 448.7 MB, free: 56.32 MB / 366.1 MB (rm -f PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe ; mkfifo PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe >> ../files/PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeChargeFromMSL_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeChargeFromMSL.fmu > PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe 2>&1)