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.001543/0.001543, allocations: 107.2 kB / 16.45 MB, free: 6.434 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.001627/0.001627, allocations: 186.9 kB / 17.38 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.35/1.35, 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.05123/0.05123, allocations: 8.096 MB / 299.3 MB, free: 6.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001138/0.001138, allocations: 63.91 kB / 414 MB, free: 22.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09989/0.101, allocations: 51.52 MB / 465.5 MB, free: 2.602 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeCharge): time 0.004057/0.1051, allocations: 2.398 MB / 467.9 MB, free: 196 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001038/0.1062, allocations: 0.4944 MB / 468.4 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000206/0.1064, allocations: 4 kB / 468.4 MB, free: 15.69 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004401/0.1069, allocations: 95.44 kB / 468.5 MB, free: 15.6 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003016/0.1072, allocations: 91.44 kB / 468.6 MB, free: 15.51 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003073/0.1076, allocations: 79.8 kB / 468.7 MB, free: 15.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003833/0.108, allocations: 283 kB / 469 MB, free: 15.15 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002319/0.1082, allocations: 102.2 kB / 469.1 MB, free: 15.05 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000196/0.1084, allocations: 123.6 kB / 469.2 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002731/0.1087, allocations: 139.4 kB / 469.3 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.993e-05/0.1087, allocations: 28 kB / 469.4 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001915/0.1089, allocations: 79.97 kB / 469.4 MB, free: 14.69 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000194/0.1091, allocations: 111.7 kB / 469.6 MB, free: 14.58 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001818/0.1093, allocations: 155.2 kB / 469.7 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005268/0.1099, allocations: 403.6 kB / 470.1 MB, free: 14.04 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.1099, allocations: 0 / 470.1 MB, free: 14.04 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1099, allocations: 0 / 470.1 MB, free: 14.04 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.258e-05/0.1099, allocations: 0 / 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.001899/0.1118, allocations: 0.7949 MB / 470.9 MB, free: 13.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.643e-05/0.1119, allocations: 15.89 kB / 470.9 MB, free: 13.17 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.358e-05/0.112, allocations: 50.73 kB / 471 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001025/0.1121, allocations: 32.56 kB / 471 MB, free: 13.08 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004922/0.1126, allocations: 351.4 kB / 471.3 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.306e-05/0.1126, allocations: 12.7 kB / 471.3 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.767e-05/0.1126, allocations: 12.38 kB / 471.4 MB, free: 12.67 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000518/0.1132, allocations: 287 kB / 471.6 MB, free: 12.37 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.315e-05/0.1132, allocations: 3.938 kB / 471.6 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.945e-05/0.1132, allocations: 12 kB / 471.7 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.024e-06/0.1132, allocations: 4 kB / 471.7 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003999/0.1136, allocations: 200.1 kB / 471.9 MB, free: 12.15 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001382/0.115, allocations: 0.8414 MB / 472.7 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006252/0.1157, allocations: 299.6 kB / 473 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003265/0.116, allocations: 148.8 kB / 473.1 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.686e-05/0.1161, allocations: 0 / 473.1 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.419e-05/0.1161, allocations: 34.56 kB / 473.2 MB, free: 10.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.212e-06/0.1161, allocations: 0 / 473.2 MB, free: 10.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007238/0.1168, allocations: 289.3 kB / 473.4 MB, free: 10.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001253/0.117, allocations: 205.6 kB / 473.6 MB, free: 10.2 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004475/0.1174, allocations: 366.7 kB / 474 MB, free: 9.832 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.047e-05/0.1175, allocations: 29.7 kB / 474 MB, free: 9.797 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001266/0.1176, allocations: 168.1 kB / 474.2 MB, free: 9.629 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.358e-05/0.1177, allocations: 43.36 kB / 474.2 MB, free: 9.586 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.954e-05/0.1178, allocations: 45.7 kB / 474.3 MB, free: 9.535 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001473/0.1179, allocations: 334.8 kB / 474.6 MB, free: 9.199 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002073/0.1181, allocations: 79.95 kB / 474.7 MB, free: 9.121 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002378/0.1184, allocations: 155.6 kB / 474.8 MB, free: 8.941 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007848/0.1192, allocations: 242.5 kB / 475.1 MB, free: 8.695 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.1192, allocations: 0 / 475.1 MB, free: 8.695 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004639/0.1197, allocations: 209.3 kB / 475.3 MB, free: 8.484 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.101e-05/0.1197, allocations: 10.34 kB / 475.3 MB, free: 8.477 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.1197, allocations: 0 / 475.3 MB, free: 8.477 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.552e-05/0.1197, allocations: 7.875 kB / 475.3 MB, free: 8.469 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001604/0.1199, allocations: 35.97 kB / 475.3 MB, free: 8.434 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.666e-06/0.1199, allocations: 3.984 kB / 475.3 MB, free: 8.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000486/0.1204, allocations: 91.8 kB / 475.4 MB, free: 8.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.545e-05/0.1204, 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.0003189/0.1208, allocations: 174.5 kB / 475.6 MB, free: 8.152 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.841e-05/0.1208, allocations: 27.72 kB / 475.6 MB, free: 8.125 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005901/0.1214, allocations: 239.3 kB / 475.9 MB, free: 7.883 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.1214, allocations: 0 / 475.9 MB, free: 7.883 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.369e-06/0.1215, allocations: 0 / 475.9 MB, free: 7.883 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.1215, allocations: 0 / 475.9 MB, free: 7.883 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001006/0.1225, allocations: 0.6589 MB / 476.5 MB, free: 7.164 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.1225, allocations: 0 / 476.5 MB, free: 7.164 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001542/0.1227, allocations: 31.92 kB / 476.6 MB, free: 7.133 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.46e-06/0.1227, allocations: 3.984 kB / 476.6 MB, free: 7.129 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.348e-05/0.1227, allocations: 19.97 kB / 476.6 MB, free: 7.109 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.1227, allocations: 0 / 476.6 MB, free: 7.109 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.1227, allocations: 0 / 476.6 MB, free: 7.109 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007524/0.1235, allocations: 428 kB / 477 MB, free: 6.672 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000105/0.1236, allocations: 108.8 kB / 477.1 MB, free: 6.547 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.464e-05/0.1237, allocations: 7.938 kB / 477.1 MB, free: 6.539 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004826/0.1241, allocations: 87.94 kB / 477.2 MB, free: 6.453 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002742/0.1244, allocations: 123.7 kB / 477.3 MB, free: 6.332 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.954e-05/0.1245, allocations: 8 kB / 477.3 MB, free: 6.324 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002988/0.1248, allocations: 277.9 kB / 477.6 MB, free: 6.051 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1248, allocations: 0 / 477.6 MB, free: 6.051 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003557/0.1251, 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.001577/0.1267, allocations: 1.114 MB / 478.8 MB, free: 4.922 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005083/0.1272, allocations: 199.8 kB / 479 MB, free: 4.727 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.1272, allocations: 4.125 kB / 479 MB, free: 4.723 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002734/0.1275, allocations: 139.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.00035/0.1279, allocations: 28.48 kB / 479.1 MB, free: 4.559 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004786/0.1327, allocations: 3.076 MB / 482.2 MB, free: 1.387 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003642/0.1331, allocations: 0.7596 MB / 483 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001528/0.1332, allocations: 45.53 kB / 483 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001934/0.1334, allocations: 83.41 kB / 483.1 MB, free: 484 kB / 350.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1334, allocations: 0 / 483.1 MB, free: 484 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0307/0.1642, allocations: 8.379 MB / 491.5 MB, free: 8.195 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.671/7.835, allocations: 4.062 kB / 491.5 MB, free: 8.191 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)