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.001255/0.001255, allocations: 108.3 kB / 16.45 MB, free: 6.445 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.001276/0.001277, allocations: 186.4 kB / 17.39 MB, free: 5.688 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.437/1.437, 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.06776/0.06776, allocations: 8.084 MB / 299.3 MB, free: 6.633 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001899/0.001899, allocations: 71.88 kB / 414.1 MB, free: 22.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0948/0.09671, allocations: 51.5 MB / 465.6 MB, free: 2.609 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeCharge): time 0.004089/0.1008, allocations: 2.387 MB / 467.9 MB, free: 212 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000921/0.1018, allocations: 0.506 MB / 468.5 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.531e-05/0.1019, allocations: 4 kB / 468.5 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003702/0.1023, allocations: 103.7 kB / 468.6 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001967/0.1025, allocations: 75.45 kB / 468.6 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002395/0.1028, allocations: 91.8 kB / 468.7 MB, free: 15.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003167/0.1031, allocations: 283 kB / 469 MB, free: 15.15 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002013/0.1033, allocations: 107.3 kB / 469.1 MB, free: 15.05 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001492/0.1034, allocations: 119.6 kB / 469.2 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002235/0.1037, allocations: 131.4 kB / 469.3 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.812e-05/0.1037, allocations: 28 kB / 469.4 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001662/0.1039, allocations: 87.91 kB / 469.5 MB, free: 14.69 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000189/0.1041, allocations: 111.7 kB / 469.6 MB, free: 14.58 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001628/0.1043, allocations: 151.2 kB / 469.7 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004964/0.1048, allocations: 410.3 kB / 470.1 MB, free: 14.03 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.736e-06/0.1048, allocations: 0 / 470.1 MB, free: 14.03 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1048, allocations: 0 / 470.1 MB, free: 14.03 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.031e-06/0.1048, allocations: 0 / 470.1 MB, free: 14.03 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.00198/0.1068, allocations: 0.8024 MB / 470.9 MB, free: 13.17 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/0.1069, allocations: 11.89 kB / 470.9 MB, free: 13.16 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.243e-05/0.1069, allocations: 54.73 kB / 471 MB, free: 13.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.001e-05/0.107, allocations: 36.7 kB / 471 MB, free: 13.06 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004881/0.1075, allocations: 355.7 kB / 471.4 MB, free: 12.67 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.292e-05/0.1075, allocations: 8.703 kB / 471.4 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.805e-05/0.1076, allocations: 16.38 kB / 471.4 MB, free: 12.65 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005677/0.1082, allocations: 283 kB / 471.7 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.338e-05/0.1082, allocations: 3.938 kB / 471.7 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.072e-05/0.1082, allocations: 12 kB / 471.7 MB, free: 12.33 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.865e-06/0.1082, allocations: 4 kB / 471.7 MB, free: 12.33 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004375/0.1087, allocations: 188.1 kB / 471.9 MB, free: 12.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001392/0.1101, allocations: 0.8494 MB / 472.7 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006812/0.1108, allocations: 303.6 kB / 473 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003615/0.1112, allocations: 144.8 kB / 473.2 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.191e-05/0.1112, allocations: 3.984 kB / 473.2 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.079e-05/0.1112, allocations: 34.56 kB / 473.2 MB, free: 10.71 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.472e-06/0.1113, allocations: 0 / 473.2 MB, free: 10.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007931/0.112, allocations: 289.2 kB / 473.5 MB, free: 10.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000125/0.1122, allocations: 209.6 kB / 473.7 MB, free: 10.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004492/0.1126, allocations: 370.6 kB / 474 MB, free: 9.805 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.968e-05/0.1127, allocations: 33.7 kB / 474.1 MB, free: 9.766 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001333/0.1128, allocations: 168.3 kB / 474.2 MB, free: 9.598 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.401e-05/0.1129, allocations: 39.66 kB / 474.3 MB, free: 9.559 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.345e-05/0.113, allocations: 33.7 kB / 474.3 MB, free: 9.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000153/0.1131, allocations: 342.8 kB / 474.6 MB, free: 9.176 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002168/0.1134, allocations: 83.94 kB / 474.7 MB, free: 9.094 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002819/0.1136, allocations: 151.7 kB / 474.9 MB, free: 8.918 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008185/0.1145, allocations: 238.3 kB / 475.1 MB, free: 8.676 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.1145, allocations: 0 / 475.1 MB, free: 8.676 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005178/0.115, allocations: 217.4 kB / 475.3 MB, free: 8.457 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/0.115, allocations: 8 kB / 475.3 MB, free: 8.449 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.115, allocations: 3.984 kB / 475.3 MB, free: 8.445 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.736e-05/0.1151, allocations: 3.938 kB / 475.3 MB, free: 8.441 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001633/0.1152, allocations: 32.05 kB / 475.4 MB, free: 8.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.003e-05/0.1153, allocations: 4 kB / 475.4 MB, free: 8.406 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000556/0.1158, allocations: 95.88 kB / 475.5 MB, free: 8.312 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.637e-05/0.1159, allocations: 4 kB / 475.5 MB, free: 8.309 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.0003419/0.1162, allocations: 166.6 kB / 475.6 MB, free: 8.137 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.315e-05/0.1163, allocations: 31.81 kB / 475.7 MB, free: 8.105 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006443/0.1169, allocations: 235.2 kB / 475.9 MB, free: 7.867 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.117, allocations: 4 kB / 475.9 MB, free: 7.863 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.117, allocations: 0 / 475.9 MB, free: 7.863 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.117, allocations: 0 / 475.9 MB, free: 7.863 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001091/0.1181, allocations: 0.6629 MB / 476.6 MB, free: 7.141 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.1181, allocations: 0 / 476.6 MB, free: 7.141 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000166/0.1183, allocations: 35.97 kB / 476.6 MB, free: 7.105 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.956e-06/0.1183, allocations: 0 / 476.6 MB, free: 7.105 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.152e-05/0.1183, allocations: 7.969 kB / 476.6 MB, free: 7.098 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.711e-06/0.1183, allocations: 7.938 kB / 476.6 MB, free: 7.09 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.1183, allocations: 0 / 476.6 MB, free: 7.09 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007967/0.1191, allocations: 424.1 kB / 477 MB, free: 6.656 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.671e-05/0.1192, allocations: 108.9 kB / 477.1 MB, free: 6.531 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.945e-05/0.1193, allocations: 11.94 kB / 477.1 MB, free: 6.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005733/0.1199, allocations: 83.94 kB / 477.2 MB, free: 6.438 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002746/0.1201, allocations: 127.8 kB / 477.4 MB, free: 6.312 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.946e-05/0.1202, allocations: 8 kB / 477.4 MB, free: 6.305 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003278/0.1205, allocations: 269.9 kB / 477.6 MB, free: 6.039 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1205, allocations: 4 kB / 477.6 MB, free: 6.035 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003484/0.1209, allocations: 67.88 kB / 477.7 MB, free: 5.969 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.001917/0.1228, allocations: 1.125 MB / 478.8 MB, free: 4.895 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005364/0.1233, allocations: 199.8 kB / 479 MB, free: 4.699 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.1234, allocations: 4.125 kB / 479 MB, free: 4.695 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003091/0.1237, allocations: 139.8 kB / 479.2 MB, free: 4.559 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003462/0.124, allocations: 23.31 kB / 479.2 MB, free: 4.539 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00507/0.1291, allocations: 3.087 MB / 482.3 MB, free: 1.355 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004017/0.1295, allocations: 0.7635 MB / 483 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000152/0.1297, allocations: 37.53 kB / 483.1 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001854/0.1299, allocations: 83.41 kB / 483.1 MB, free: 456 kB / 350.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1299, allocations: 0 / 483.1 MB, free: 456 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03356/0.1635, allocations: 8.17 MB / 491.3 MB, free: 8.379 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.538/8.702, allocations: 8.062 kB / 491.3 MB, free: 8.371 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)