Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.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.BatteryDischargeCharge,fileNamePrefix="PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeCharge",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.001025/0.001025, allocations: 103 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.0009866/0.0009866, allocations: 186.9 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.381/1.381, allocations: 222.9 MB / 241.1 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04951/0.04951, allocations: 8.099 MB / 299.3 MB, free: 6.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00115/0.00115, allocations: 63.89 kB / 414 MB, free: 22.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09648/0.09764, allocations: 51.51 MB / 465.5 MB, free: 2.605 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeCharge): time 0.003417/0.1011, allocations: 2.391 MB / 467.9 MB, free: 204 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007771/0.1019, allocations: 0.5099 MB / 468.4 MB, free: 15.69 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.071e-05/0.102, allocations: 0 / 468.4 MB, free: 15.69 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003817/0.1024, allocations: 91.44 kB / 468.5 MB, free: 15.6 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002065/0.1026, allocations: 91.45 kB / 468.6 MB, free: 15.51 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002235/0.1028, allocations: 79.78 kB / 468.7 MB, free: 15.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002644/0.1031, allocations: 283 kB / 469 MB, free: 15.15 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001899/0.1033, allocations: 102.2 kB / 469.1 MB, free: 15.05 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001373/0.1035, allocations: 119.6 kB / 469.2 MB, free: 14.94 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002032/0.1037, allocations: 147.4 kB / 469.3 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.747e-05/0.1037, allocations: 28 kB / 469.4 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001437/0.1039, allocations: 75.98 kB / 469.4 MB, free: 14.69 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001519/0.104, allocations: 111.7 kB / 469.6 MB, free: 14.58 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001341/0.1042, allocations: 159.2 kB / 469.7 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004055/0.1046, allocations: 395.6 kB / 470.1 MB, free: 14.04 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.1046, allocations: 0 / 470.1 MB, free: 14.04 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1046, allocations: 0 / 470.1 MB, free: 14.04 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.744e-06/0.1046, allocations: 4 kB / 470.1 MB, free: 14.04 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001787/0.1064, allocations: 0.791 MB / 470.9 MB, free: 13.19 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.796e-05/0.1065, allocations: 15.89 kB / 470.9 MB, free: 13.17 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.77e-05/0.1065, allocations: 50.73 kB / 471 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.011e-05/0.1066, allocations: 32.56 kB / 471 MB, free: 13.08 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004282/0.1071, allocations: 351.4 kB / 471.3 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.282e-05/0.1071, allocations: 12.7 kB / 471.3 MB, free: 12.69 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.562e-05/0.1071, allocations: 20.38 kB / 471.4 MB, free: 12.67 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004742/0.1076, allocations: 283 kB / 471.6 MB, free: 12.37 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.1076, allocations: 3.938 kB / 471.6 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.635e-05/0.1077, allocations: 8 kB / 471.6 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.683e-06/0.1077, allocations: 4 kB / 471.7 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003789/0.1081, allocations: 200.1 kB / 471.8 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001254/0.1093, allocations: 0.8454 MB / 472.7 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005906/0.1099, allocations: 295.6 kB / 473 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003201/0.1103, allocations: 144.8 kB / 473.1 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.012e-05/0.1103, allocations: 4 kB / 473.1 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.252e-05/0.1103, allocations: 30.56 kB / 473.2 MB, free: 10.74 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.222e-06/0.1103, allocations: 3.938 kB / 473.2 MB, free: 10.74 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.0009405/0.1113, allocations: 293.3 kB / 473.4 MB, free: 10.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001294/0.1114, allocations: 205.6 kB / 473.6 MB, free: 10.2 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004147/0.1119, allocations: 366.7 kB / 474 MB, free: 9.832 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.554e-05/0.1119, allocations: 29.7 kB / 474 MB, free: 9.797 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001263/0.112, allocations: 172.1 kB / 474.2 MB, free: 9.625 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.479e-05/0.1121, allocations: 47.36 kB / 474.2 MB, free: 9.578 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.864e-05/0.1122, allocations: 41.7 kB / 474.3 MB, free: 9.531 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001446/0.1123, allocations: 334.8 kB / 474.6 MB, free: 9.195 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001974/0.1125, allocations: 79.95 kB / 474.7 MB, free: 9.117 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002458/0.1128, allocations: 159.6 kB / 474.9 MB, free: 8.934 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000763/0.1135, allocations: 242.5 kB / 475.1 MB, free: 8.688 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.1136, allocations: 0 / 475.1 MB, free: 8.688 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004506/0.114, allocations: 213.3 kB / 475.3 MB, free: 8.473 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/0.114, allocations: 6.5 kB / 475.3 MB, free: 8.469 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.114, allocations: 0 / 475.3 MB, free: 8.469 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.258e-05/0.1141, allocations: 4 kB / 475.3 MB, free: 8.465 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000147/0.1142, allocations: 35.91 kB / 475.3 MB, free: 8.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.74e-06/0.1142, allocations: 4.062 kB / 475.3 MB, free: 8.426 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005062/0.1147, allocations: 87.73 kB / 475.4 MB, free: 8.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.435e-05/0.1148, allocations: 7.984 kB / 475.4 MB, free: 8.332 MB / 350.1 MB Warning: Assuming fixed start value for the following 1 variables: battery.integrator.q:VARIABLE(flow=false start = 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: 2 (pulseSeries.on2,pulseSeries.on1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.0002718/0.1151, allocations: 178.2 kB / 475.6 MB, free: 8.152 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.907e-05/0.1151, allocations: 23.72 kB / 475.6 MB, free: 8.129 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005677/0.1157, allocations: 239.3 kB / 475.9 MB, free: 7.887 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.1157, allocations: 0 / 475.9 MB, free: 7.887 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.1157, allocations: 0 / 475.9 MB, free: 7.887 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.1157, allocations: 4 kB / 475.9 MB, free: 7.883 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009328/0.1167, allocations: 0.655 MB / 476.5 MB, free: 7.168 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.1167, allocations: 4 kB / 476.5 MB, free: 7.164 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001485/0.1168, allocations: 35.95 kB / 476.6 MB, free: 7.129 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.629e-06/0.1168, allocations: 3.984 kB / 476.6 MB, free: 7.125 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.169e-05/0.1169, allocations: 7.938 kB / 476.6 MB, free: 7.117 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.1169, allocations: 0 / 476.6 MB, free: 7.117 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.1169, allocations: 0 / 476.6 MB, free: 7.117 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007134/0.1176, allocations: 436 kB / 477 MB, free: 6.672 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.41e-05/0.1177, allocations: 104.8 kB / 477.1 MB, free: 6.551 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.236e-05/0.1178, allocations: 7.938 kB / 477.1 MB, free: 6.543 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005142/0.1183, allocations: 87.94 kB / 477.2 MB, free: 6.457 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002553/0.1185, allocations: 123.7 kB / 477.3 MB, free: 6.336 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.847e-05/0.1186, allocations: 8 kB / 477.3 MB, free: 6.328 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002743/0.1188, allocations: 277.9 kB / 477.6 MB, free: 6.055 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1188, allocations: 3.938 kB / 477.6 MB, free: 6.051 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000319/0.1192, allocations: 67.84 kB / 477.7 MB, free: 5.984 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (battery.integrator.q) * 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.001417/0.1206, allocations: 1.118 MB / 478.8 MB, free: 4.918 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004771/0.1211, allocations: 199.9 kB / 479 MB, free: 4.723 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.1211, allocations: 7.938 kB / 479 MB, free: 4.715 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000274/0.1214, allocations: 131.9 kB / 479.1 MB, free: 4.586 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003138/0.1217, allocations: 24.55 kB / 479.1 MB, free: 4.562 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004429/0.1261, allocations: 3.076 MB / 482.2 MB, free: 1.391 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003325/0.1265, allocations: 0.7635 MB / 483 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001405/0.1266, allocations: 41.53 kB / 483 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001646/0.1268, allocations: 87.41 kB / 483.1 MB, free: 484 kB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1268, allocations: 0 / 483.1 MB, free: 484 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03755/0.1644, allocations: 8.378 MB / 491.5 MB, free: 8.191 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.579/7.744, allocations: 3.938 kB / 491.5 MB, free: 8.188 MB / 366.1 MB (rm -f PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeCharge_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeCharge.fmu > PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1)