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.001057/0.001057, allocations: 103.3 kB / 16.45 MB, free: 6.441 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.001102/0.001102, 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.287/1.287, allocations: 222.9 MB / 241.1 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.0479/0.0479, allocations: 8.094 MB / 299.3 MB, free: 6.652 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001381/0.001381, allocations: 63.91 kB / 414 MB, free: 22.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09608/0.09747, allocations: 51.53 MB / 465.6 MB, free: 2.621 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL): time 0.0048/0.1023, allocations: 3.361 MB / 468.9 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002218/0.1046, allocations: 1.317 MB / 470.2 MB, free: 13.92 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003214/0.1049, allocations: 11.94 kB / 470.2 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006182/0.1056, allocations: 183.5 kB / 470.4 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005473/0.1061, allocations: 182.8 kB / 470.6 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006171/0.1068, allocations: 243.4 kB / 470.8 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006751/0.1074, allocations: 0.5338 MB / 471.4 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002778/0.1077, allocations: 165 kB / 471.5 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003262/0.1081, allocations: 219.1 kB / 471.7 MB, free: 12.4 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003623/0.1084, allocations: 235 kB / 472 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.783e-05/0.1085, allocations: 44 kB / 472 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002073/0.1087, allocations: 87.97 kB / 472.1 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002085/0.109, allocations: 167.5 kB / 472.3 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000303/0.1093, allocations: 262.6 kB / 472.5 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006793/0.11, allocations: 0.6385 MB / 473.2 MB, free: 10.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.86e-06/0.11, allocations: 8 kB / 473.2 MB, free: 10.97 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.11, allocations: 0 / 473.2 MB, free: 10.97 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.344e-05/0.11, allocations: 0 / 473.2 MB, free: 10.97 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.002301/0.1123, allocations: 1.005 MB / 474.2 MB, free: 9.914 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.364e-05/0.1124, allocations: 11.89 kB / 474.2 MB, free: 9.902 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.553e-05/0.1125, allocations: 62.73 kB / 474.2 MB, free: 9.832 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001185/0.1126, allocations: 52.28 kB / 474.3 MB, free: 9.781 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008042/0.1134, allocations: 0.4946 MB / 474.8 MB, free: 9.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.961e-05/0.1134, allocations: 16.94 kB / 474.8 MB, free: 9.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.794e-05/0.1135, allocations: 31.88 kB / 474.8 MB, free: 9.199 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006332/0.1141, allocations: 389.6 kB / 475.2 MB, free: 8.789 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.183e-05/0.1142, allocations: 0 / 475.2 MB, free: 8.789 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.384e-05/0.1142, allocations: 16 kB / 475.2 MB, free: 8.773 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.438e-06/0.1142, allocations: 8 kB / 475.2 MB, free: 8.766 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004678/0.1147, allocations: 250.1 kB / 475.5 MB, free: 8.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002194/0.1169, allocations: 1.496 MB / 477 MB, free: 6.926 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005382/0.1174, allocations: 287.5 kB / 477.3 MB, free: 6.617 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00022/0.1177, allocations: 104.8 kB / 477.4 MB, free: 6.512 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.628e-05/0.1177, allocations: 4 kB / 477.4 MB, free: 6.508 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.242e-05/0.1178, allocations: 46.48 kB / 477.4 MB, free: 6.453 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.433e-06/0.1178, allocations: 4 kB / 477.4 MB, free: 6.449 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007286/0.1185, allocations: 297.3 kB / 477.7 MB, free: 6.152 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001064/0.1186, allocations: 209.6 kB / 477.9 MB, free: 5.898 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006801/0.1193, allocations: 0.576 MB / 478.5 MB, free: 5.309 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.29e-05/0.1193, allocations: 33.7 kB / 478.5 MB, free: 5.27 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000213/0.1196, allocations: 263.7 kB / 478.8 MB, free: 5.008 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.135e-05/0.1197, allocations: 43.45 kB / 478.8 MB, free: 4.965 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.283e-05/0.1198, allocations: 45.66 kB / 478.9 MB, free: 4.914 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001282/0.1199, allocations: 358.8 kB / 479.2 MB, free: 4.555 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002158/0.1201, allocations: 91.94 kB / 479.3 MB, free: 4.465 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002893/0.1204, allocations: 222.5 kB / 479.5 MB, free: 4.195 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003523/0.1208, allocations: 197 kB / 479.7 MB, free: 3.973 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.1208, allocations: 0 / 479.7 MB, free: 3.973 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005793/0.1214, allocations: 292.8 kB / 480 MB, free: 3.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.829e-05/0.1214, allocations: 8 kB / 480 MB, free: 3.672 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/0.1214, allocations: 4.25 kB / 480 MB, free: 3.668 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.609e-05/0.1214, allocations: 8 kB / 480 MB, free: 3.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001908/0.1216, allocations: 51.91 kB / 480.1 MB, free: 3.609 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.328e-06/0.1217, allocations: 4 kB / 480.1 MB, free: 3.605 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005671/0.1222, allocations: 107.6 kB / 480.2 MB, free: 3.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.642e-05/0.1223, allocations: 8 kB / 480.2 MB, free: 3.492 MB / 350.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.000178/0.1225, allocations: 185.8 kB / 480.4 MB, free: 3.301 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.764e-05/0.1225, allocations: 43.53 kB / 480.4 MB, free: 3.258 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005725/0.1231, allocations: 265.3 kB / 480.7 MB, free: 2.996 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.169e-06/0.1231, allocations: 3.984 kB / 480.7 MB, free: 2.992 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.107e-06/0.1231, allocations: 0 / 480.7 MB, free: 2.992 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.1231, allocations: 0 / 480.7 MB, free: 2.992 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001034/0.1242, allocations: 0.7603 MB / 481.4 MB, free: 2.172 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.1242, allocations: 4.031 kB / 481.4 MB, free: 2.168 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001395/0.1243, allocations: 23.98 kB / 481.5 MB, free: 2.145 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.1244, allocations: 0 / 481.5 MB, free: 2.145 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.912e-05/0.1244, allocations: 7.984 kB / 481.5 MB, free: 2.137 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.923e-06/0.1244, allocations: 0 / 481.5 MB, free: 2.137 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.1244, allocations: 0 / 481.5 MB, free: 2.137 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007515/0.1251, allocations: 467.6 kB / 481.9 MB, free: 1.66 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002195/0.1254, allocations: 156.6 kB / 482.1 MB, free: 1.488 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.253e-05/0.1254, allocations: 4 kB / 482.1 MB, free: 1.484 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006113/0.1261, allocations: 95.92 kB / 482.2 MB, free: 1.391 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002527/0.1263, allocations: 123.8 kB / 482.3 MB, free: 1.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.162e-05/0.1264, allocations: 8 kB / 482.3 MB, free: 1.262 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004675/0.1268, allocations: 431.1 kB / 482.7 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1268, allocations: 0 / 482.7 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004039/0.1272, allocations: 99.75 kB / 482.8 MB, free: 0.7422 MB / 350.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.001682/0.1289, allocations: 1.264 MB / 484.1 MB, free: 15.59 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005658/0.1295, allocations: 227.7 kB / 484.3 MB, free: 15.36 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.1295, allocations: 0 / 484.3 MB, free: 15.36 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002785/0.1298, allocations: 148.5 kB / 484.5 MB, free: 15.22 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005891/0.1304, allocations: 108.3 kB / 484.6 MB, free: 15.11 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005632/0.1361, allocations: 4.288 MB / 488.9 MB, free: 10.67 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003657/0.1364, allocations: 0.8231 MB / 489.7 MB, free: 9.82 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002583/0.1367, allocations: 71.23 kB / 489.7 MB, free: 9.754 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002511/0.137, allocations: 151.4 kB / 489.9 MB, free: 9.605 MB / 366.1 MB Notification: Performance of SimCode: time 4.91e-07/0.137, allocations: 0 / 489.9 MB, free: 9.605 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03397/0.171, allocations: 12.8 MB / 0.4909 GB, free: 12.99 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.853/8.024, allocations: 8.688 kB / 0.4909 GB, free: 12.98 MB / 382.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)