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/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/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: translateModel(PowerSysPro.Batteries.Examples.BatteryDischargeCharge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=72000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge") translateModel(PowerSysPro.Batteries.Examples.BatteryDischargeCharge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=72000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008887/0.0008886, allocations: 96.94 kB / 16.06 MB, free: 40 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.0008423/0.0008423, allocations: 182.6 kB / 16.96 MB, free: 6.895 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.417/1.417, allocations: 223.3 MB / 241 MB, free: 5.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.1861/0.1861, allocations: 8.09 MB / 300.2 MB, free: 2.895 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003522/0.0003524, allocations: 12 kB / 363.5 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.117/0.1174, allocations: 52.51 MB / 416 MB, free: 8.363 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeCharge): time 0.004011/0.1214, allocations: 2.068 MB / 418.1 MB, free: 6.281 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001341/0.1228, allocations: 498.4 kB / 418.6 MB, free: 5.793 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002563/0.1231, allocations: 4 kB / 418.6 MB, free: 5.789 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005801/0.1237, allocations: 91.56 kB / 418.7 MB, free: 5.699 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005389/0.1243, allocations: 71.58 kB / 418.7 MB, free: 5.629 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004897/0.1248, allocations: 71.89 kB / 418.8 MB, free: 5.559 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005808/0.1254, allocations: 287.1 kB / 419.1 MB, free: 5.277 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003805/0.1258, allocations: 99.52 kB / 419.2 MB, free: 5.176 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002927/0.1261, allocations: 95.58 kB / 419.3 MB, free: 5.082 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003992/0.1265, allocations: 119.5 kB / 419.4 MB, free: 4.965 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.662e-05/0.1266, allocations: 12 kB / 419.4 MB, free: 4.953 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003025/0.1269, allocations: 63.91 kB / 419.5 MB, free: 4.891 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002405/0.1272, allocations: 95.69 kB / 419.6 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002598/0.1274, allocations: 156.9 kB / 419.7 MB, free: 4.637 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008457/0.1283, allocations: 382.6 kB / 420.1 MB, free: 4.262 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.1283, allocations: 0 / 420.1 MB, free: 4.262 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.639e-06/0.1283, allocations: 0 / 420.1 MB, free: 4.262 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.876e-05/0.1284, allocations: 0 / 420.1 MB, free: 4.262 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.00355/0.1319, allocations: 0.8068 MB / 420.9 MB, free: 3.398 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.227e-05/0.132, allocations: 11.97 kB / 420.9 MB, free: 3.387 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001813/0.1322, allocations: 32.56 kB / 420.9 MB, free: 3.355 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006104/0.1328, allocations: 351.5 kB / 421.3 MB, free: 2.977 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.168e-05/0.1329, allocations: 12.7 kB / 421.3 MB, free: 2.965 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.58e-05/0.1329, allocations: 16.38 kB / 421.3 MB, free: 2.949 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005694/0.1335, allocations: 283 kB / 421.6 MB, free: 2.648 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.457e-06/0.1335, allocations: 4.188 kB / 421.6 MB, free: 2.645 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.461e-05/0.1336, allocations: 15.94 kB / 421.6 MB, free: 2.629 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.987e-06/0.1336, allocations: 4 kB / 421.6 MB, free: 2.625 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004443/0.134, allocations: 196.1 kB / 421.8 MB, free: 2.434 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001894/0.1359, allocations: 0.8609 MB / 422.7 MB, free: 1.508 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007296/0.1367, allocations: 307.7 kB / 423 MB, free: 1.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004658/0.1372, allocations: 152.7 kB / 423.1 MB, free: 1.027 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.174e-05/0.1372, allocations: 7.984 kB / 423.1 MB, free: 1.02 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.076e-05/0.1373, allocations: 34.56 kB / 423.1 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 3.226e-06/0.1373, allocations: 11.98 kB / 423.2 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007933/0.1381, allocations: 289.3 kB / 423.4 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001179/0.1382, allocations: 205.9 kB / 423.6 MB, free: 436 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004774/0.1387, allocations: 370.6 kB / 424 MB, free: 60 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.215e-05/0.1387, allocations: 29.7 kB / 424 MB, free: 24 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2279/0.3666, allocations: 167.3 kB / 424.2 MB, free: 41.83 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.63e-05/0.3668, allocations: 36.42 kB / 424.2 MB, free: 41.83 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.455e-05/0.3668, allocations: 20.8 kB / 424.3 MB, free: 41.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.598e-05/0.3669, allocations: 339.5 kB / 424.6 MB, free: 41.5 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002643/0.3672, allocations: 88.81 kB / 424.7 MB, free: 41.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002531/0.3674, allocations: 159.4 kB / 424.8 MB, free: 41.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000829/0.3683, allocations: 257.3 kB / 425.1 MB, free: 41.41 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.3683, allocations: 3 kB / 425.1 MB, free: 41.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005146/0.3688, allocations: 216.3 kB / 425.3 MB, free: 41.37 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.947e-05/0.3688, allocations: 12.89 kB / 425.3 MB, free: 41.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.3688, allocations: 0 / 425.3 MB, free: 41.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.491e-05/0.3689, allocations: 0 / 425.3 MB, free: 41.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001579/0.369, allocations: 40.41 kB / 425.3 MB, free: 41.37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.822e-06/0.369, allocations: 0 / 425.3 MB, free: 41.37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005441/0.3696, allocations: 125.1 kB / 425.5 MB, free: 41.37 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.494e-05/0.3696, allocations: 11.38 kB / 425.5 MB, free: 41.37 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.0002339/0.3699, allocations: 154.3 kB / 425.6 MB, free: 41.25 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.675e-05/0.3699, allocations: 28.09 kB / 425.7 MB, free: 41.24 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000571/0.3705, allocations: 249.2 kB / 425.9 MB, free: 41.21 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.3705, allocations: 3.938 kB / 425.9 MB, free: 41.2 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.3705, allocations: 6.031 kB / 425.9 MB, free: 41.2 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.3705, allocations: 1.219 kB / 425.9 MB, free: 41.2 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008929/0.3714, allocations: 0.6646 MB / 426.6 MB, free: 40.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.3715, allocations: 0.5625 kB / 426.6 MB, free: 40.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001434/0.3716, allocations: 34.7 kB / 426.6 MB, free: 40.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.277e-06/0.3716, allocations: 0 / 426.6 MB, free: 40.89 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.713e-05/0.3716, allocations: 5.531 kB / 426.6 MB, free: 40.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.3716, allocations: 0.875 kB / 426.6 MB, free: 40.89 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.3717, allocations: 3.094 kB / 426.6 MB, free: 40.89 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006563/0.3723, allocations: 444.9 kB / 427.1 MB, free: 40.73 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.091e-05/0.3724, allocations: 116.5 kB / 427.2 MB, free: 40.62 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.639e-05/0.3725, allocations: 2.688 kB / 427.2 MB, free: 40.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005575/0.373, allocations: 118.7 kB / 427.3 MB, free: 40.62 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002451/0.3733, allocations: 125.1 kB / 427.4 MB, free: 40.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.597e-05/0.3733, allocations: 8.125 kB / 427.4 MB, free: 40.62 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002706/0.3736, allocations: 281.7 kB / 427.7 MB, free: 40.54 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3736, allocations: 0 / 427.7 MB, free: 40.54 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003343/0.3739, allocations: 68.09 kB / 427.8 MB, free: 40.53 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.000651/0.3746, allocations: 273.9 kB / 428 MB, free: 40.42 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005276/0.3751, allocations: 204 kB / 428.2 MB, free: 40.42 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.3751, allocations: 0 / 428.2 MB, free: 40.42 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002689/0.3754, allocations: 143.4 kB / 428.4 MB, free: 40.41 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003683/0.3758, allocations: 32.25 kB / 428.4 MB, free: 40.41 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001717/0.3775, allocations: 0.8008 MB / 429.2 MB, free: 40.05 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001771/0.3777, allocations: 0.7584 MB / 430 MB, free: 39.36 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001437/0.3779, allocations: 44.83 kB / 430 MB, free: 39.35 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001006/0.378, allocations: 20.89 kB / 430 MB, free: 39.34 MB / 350.1 MB Notification: Performance of SimCode: time 5.41e-07/0.378, allocations: 0 / 430 MB, free: 39.34 MB / 350.1 MB Notification: Performance of Templates: time 0.007083/0.3851, allocations: 4.283 MB / 434.3 MB, free: 39.09 MB / 350.1 MB make -j1 -f PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.makefile Environment - environmentSimulation: (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 & ./PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) Environment - environmentSimulation: