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.001142/0.001142, allocations: 103 kB / 16.07 MB, free: 32 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001453/0.001453, allocations: 181.8 kB / 16.96 MB, free: 6.875 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.277/1.277, allocations: 223.3 MB / 241 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.1682/0.1682, allocations: 8.086 MB / 300.2 MB, free: 2.93 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.000312/0.0003118, allocations: 11.98 kB / 363.6 MB, free: 12.87 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1059, allocations: 52.52 MB / 416.1 MB, free: 8.309 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeCharge): time 0.002939/0.1089, allocations: 2.06 MB / 418.2 MB, free: 6.234 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008092/0.1097, allocations: 0.4906 MB / 418.7 MB, free: 5.742 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.634e-05/0.1098, allocations: 0 / 418.7 MB, free: 5.742 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00032/0.1101, allocations: 91.56 kB / 418.8 MB, free: 5.652 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001825/0.1103, allocations: 71.59 kB / 418.8 MB, free: 5.582 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002038/0.1105, allocations: 79.86 kB / 418.9 MB, free: 5.504 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002698/0.1108, allocations: 279.1 kB / 419.2 MB, free: 5.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002022/0.111, allocations: 99.52 kB / 419.3 MB, free: 5.129 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001266/0.1112, allocations: 99.55 kB / 419.4 MB, free: 5.031 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001963/0.1114, allocations: 123.5 kB / 419.5 MB, free: 4.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.292e-05/0.1114, allocations: 12 kB / 419.5 MB, free: 4.898 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001441/0.1116, allocations: 71.91 kB / 419.6 MB, free: 4.828 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001428/0.1117, allocations: 83.75 kB / 419.7 MB, free: 4.746 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001388/0.1119, allocations: 157 kB / 419.8 MB, free: 4.586 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003546/0.1122, allocations: 370.7 kB / 420.2 MB, free: 4.223 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.1122, allocations: 0 / 420.2 MB, free: 4.223 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1122, allocations: 0 / 420.2 MB, free: 4.223 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.514e-06/0.1122, allocations: 0 / 420.2 MB, free: 4.223 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.001834/0.1141, allocations: 0.8184 MB / 421 MB, free: 3.348 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.331e-05/0.1141, allocations: 8.031 kB / 421 MB, free: 3.34 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.447e-05/0.1142, allocations: 58.67 kB / 421.1 MB, free: 3.273 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.887e-05/0.1143, allocations: 36.56 kB / 421.1 MB, free: 3.238 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004105/0.1147, allocations: 343.6 kB / 421.4 MB, free: 2.867 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.905e-05/0.1147, allocations: 12.7 kB / 421.4 MB, free: 2.855 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.114e-05/0.1148, allocations: 16.38 kB / 421.5 MB, free: 2.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005252/0.1153, allocations: 291 kB / 421.7 MB, free: 2.531 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.603e-05/0.1153, allocations: 3.938 kB / 421.7 MB, free: 2.527 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.664e-05/0.1154, allocations: 8 kB / 421.8 MB, free: 2.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.805e-06/0.1154, allocations: 4 kB / 421.8 MB, free: 2.516 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003857/0.1158, allocations: 188.2 kB / 421.9 MB, free: 2.332 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001309/0.1171, allocations: 0.8725 MB / 422.8 MB, free: 1.395 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000611/0.1177, allocations: 315.6 kB / 423.1 MB, free: 1.059 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003318/0.1181, allocations: 148.8 kB / 423.3 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.302e-05/0.1181, allocations: 11.98 kB / 423.3 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.167e-05/0.1181, allocations: 30.56 kB / 423.3 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.282e-06/0.1181, allocations: 0 / 423.3 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007182/0.1189, allocations: 289.6 kB / 423.6 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.201e-05/0.119, allocations: 205.6 kB / 423.8 MB, free: 328 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1987/0.3176, allocations: 369.5 kB / 424.2 MB, free: 41.74 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.562e-05/0.3178, allocations: 32.42 kB / 424.2 MB, free: 41.71 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001425/0.3179, allocations: 168.8 kB / 424.4 MB, free: 41.63 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.934e-05/0.318, allocations: 40.62 kB / 424.4 MB, free: 41.63 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.067e-05/0.318, allocations: 20.61 kB / 424.4 MB, free: 41.61 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.856e-05/0.3181, allocations: 340.2 kB / 424.7 MB, free: 41.3 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002586/0.3184, allocations: 90.58 kB / 424.8 MB, free: 41.3 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002383/0.3186, allocations: 156.1 kB / 425 MB, free: 41.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000843/0.3195, allocations: 255.3 kB / 425.2 MB, free: 41.21 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.3195, allocations: 0 / 425.2 MB, free: 41.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005288/0.32, allocations: 217.1 kB / 425.4 MB, free: 41.17 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.007e-05/0.32, allocations: 7.469 kB / 425.5 MB, free: 41.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.3201, allocations: 7.078 kB / 425.5 MB, free: 41.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.974e-05/0.3201, allocations: 6.375 kB / 425.5 MB, free: 41.17 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000162/0.3203, allocations: 36.88 kB / 425.5 MB, free: 41.17 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.232e-06/0.3203, allocations: 0 / 425.5 MB, free: 41.17 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005751/0.3209, allocations: 125.7 kB / 425.6 MB, free: 41.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.397e-05/0.3209, allocations: 9.75 kB / 425.6 MB, free: 41.17 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.0002518/0.3211, allocations: 159.5 kB / 425.8 MB, free: 41.05 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.927e-05/0.3212, allocations: 24.38 kB / 425.8 MB, free: 41.04 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005702/0.3218, allocations: 255.1 kB / 426.1 MB, free: 41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.3218, allocations: 3.125 kB / 426.1 MB, free: 41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.3218, allocations: 0.6875 kB / 426.1 MB, free: 41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.3218, allocations: 0 / 426.1 MB, free: 41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008727/0.3227, allocations: 0.6666 MB / 426.7 MB, free: 40.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.3227, allocations: 0.6562 kB / 426.7 MB, free: 40.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001503/0.3229, allocations: 31.92 kB / 426.8 MB, free: 40.69 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.3229, allocations: 0 / 426.8 MB, free: 40.69 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.751e-05/0.3229, allocations: 6.375 kB / 426.8 MB, free: 40.69 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.586e-06/0.3229, allocations: 5.484 kB / 426.8 MB, free: 40.69 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.3229, allocations: 0 / 426.8 MB, free: 40.69 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006829/0.3236, allocations: 446.9 kB / 427.2 MB, free: 40.53 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.808e-05/0.3237, allocations: 116.3 kB / 427.3 MB, free: 40.42 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.561e-05/0.3237, allocations: 3.781 kB / 427.3 MB, free: 40.42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005756/0.3243, allocations: 118.9 kB / 427.4 MB, free: 40.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000284/0.3246, allocations: 124.1 kB / 427.6 MB, free: 40.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.948e-05/0.3246, allocations: 9.656 kB / 427.6 MB, free: 40.41 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002755/0.3249, allocations: 276.8 kB / 427.8 MB, free: 40.34 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3249, allocations: 5.234 kB / 427.9 MB, free: 40.34 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003687/0.3253, allocations: 65.97 kB / 427.9 MB, free: 40.33 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.001405/0.3267, allocations: 1.14 MB / 429.1 MB, free: 39.62 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005146/0.3273, allocations: 207.2 kB / 429.3 MB, free: 39.62 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.3273, allocations: 3.438 kB / 429.3 MB, free: 39.62 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002634/0.3275, allocations: 144.1 kB / 429.4 MB, free: 39.61 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003653/0.3279, allocations: 27 kB / 429.4 MB, free: 39.61 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004279/0.3322, allocations: 3.234 MB / 432.7 MB, free: 38.11 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002097/0.3324, allocations: 0.7692 MB / 433.4 MB, free: 37.41 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001771/0.3326, allocations: 43.72 kB / 433.5 MB, free: 37.41 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001739/0.3328, allocations: 78.81 kB / 433.6 MB, free: 37.4 MB / 350.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3328, allocations: 3.281 kB / 433.6 MB, free: 37.4 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3403/0.6731, allocations: 6.569 MB / 440.1 MB, free: 36.95 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001477/0.6733, allocations: 243.7 kB / 440.4 MB, free: 36.69 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.978/2.651, allocations: 0 / 440.4 MB, free: 36.69 MB / 350.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)