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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001429/0.001429, allocations: 186.9 kB / 16.68 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.391/1.391, allocations: 222.9 MB / 240.3 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001004/0.001004, allocations: 109.9 kB / 290.6 MB, free: 10.91 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.05769/0.05769, allocations: 8.096 MB / 348.8 MB, free: 0.6641 MB / 282.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001426/0.001426, allocations: 58.38 kB / 411.1 MB, free: 57.54 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08362/0.08506, allocations: 51.51 MB / 462.6 MB, free: 6.031 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeCharge): time 0.00323/0.08834, allocations: 2.427 MB / 465 MB, free: 3.59 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008574/0.08923, allocations: 0.5099 MB / 465.6 MB, free: 3.078 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001902/0.08944, allocations: 4 kB / 465.6 MB, free: 3.074 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004254/0.0899, allocations: 79.58 kB / 465.6 MB, free: 2.996 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002367/0.09015, allocations: 83.58 kB / 465.7 MB, free: 2.914 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002407/0.0904, allocations: 63.94 kB / 465.8 MB, free: 2.852 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002553/0.09066, allocations: 299 kB / 466.1 MB, free: 2.559 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001628/0.09083, allocations: 87.55 kB / 466.2 MB, free: 2.465 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001312/0.09097, allocations: 103.6 kB / 466.3 MB, free: 2.363 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002033/0.09118, allocations: 131.4 kB / 466.4 MB, free: 2.234 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.952e-05/0.09123, allocations: 16 kB / 466.4 MB, free: 2.219 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000158/0.0914, allocations: 67.97 kB / 466.5 MB, free: 2.152 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001408/0.09155, allocations: 107.6 kB / 466.6 MB, free: 2.047 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001073/0.09166, allocations: 131.2 kB / 466.7 MB, free: 1.918 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003155/0.09198, allocations: 390.8 kB / 467.1 MB, free: 1.535 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.092, allocations: 0 / 467.1 MB, free: 1.535 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.332e-06/0.09201, allocations: 0 / 467.1 MB, free: 1.535 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.783e-06/0.09202, allocations: 0 / 467.1 MB, free: 1.535 MB / 298.7 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.001728/0.09375, allocations: 0.7976 MB / 467.9 MB, free: 0.6875 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.687e-05/0.0938, allocations: 12.03 kB / 467.9 MB, free: 0.6758 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.271e-05/0.09388, allocations: 28.56 kB / 467.9 MB, free: 0.6484 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000354/0.09425, allocations: 355.4 kB / 468.3 MB, free: 268 kB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.05e-05/0.09428, allocations: 16.7 kB / 468.3 MB, free: 252 kB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.181e-05/0.09431, allocations: 16.38 kB / 468.3 MB, free: 236 kB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004554/0.09478, allocations: 283 kB / 468.6 MB, free: 15.93 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.0948, allocations: 192 / 468.6 MB, free: 15.93 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.799e-05/0.09483, allocations: 11.94 kB / 468.6 MB, free: 15.92 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.874e-06/0.09485, allocations: 4 kB / 468.6 MB, free: 15.91 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003942/0.09525, allocations: 195.8 kB / 468.8 MB, free: 15.72 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001324/0.09658, allocations: 0.857 MB / 469.6 MB, free: 14.8 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005994/0.09719, allocations: 299.6 kB / 469.9 MB, free: 14.48 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003287/0.09753, allocations: 144.8 kB / 470.1 MB, free: 14.34 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.398e-05/0.09758, allocations: 7.938 kB / 470.1 MB, free: 14.33 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.584e-05/0.09761, allocations: 30.56 kB / 470.1 MB, free: 14.29 MB / 314.7 MB Notification: Performance of pre-optimization done (n=13): time 1.313e-06/0.09762, allocations: 0 / 470.1 MB, free: 14.29 MB / 314.7 MB Notification: Performance of matching and sorting (n=13): time 0.0007317/0.09836, allocations: 285.5 kB / 470.4 MB, free: 14 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001075/0.09848, allocations: 213.6 kB / 470.6 MB, free: 13.75 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004071/0.09889, allocations: 362.7 kB / 471 MB, free: 13.39 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.298e-05/0.09892, allocations: 33.69 kB / 471 MB, free: 13.35 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001082/0.09904, allocations: 168 kB / 471.2 MB, free: 13.18 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.89e-05/0.09908, allocations: 43.45 kB / 471.2 MB, free: 13.14 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.442e-05/0.09916, allocations: 33.7 kB / 471.2 MB, free: 13.1 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001236/0.09929, allocations: 346.8 kB / 471.6 MB, free: 12.75 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001994/0.0995, allocations: 79.95 kB / 471.6 MB, free: 12.67 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002564/0.09977, allocations: 155.6 kB / 471.8 MB, free: 12.49 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007646/0.1005, allocations: 237.5 kB / 472 MB, free: 12.25 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.1006, allocations: 0 / 472 MB, free: 12.25 MB / 314.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000463/0.101, allocations: 213.3 kB / 472.2 MB, free: 12.04 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.43e-05/0.101, allocations: 4 kB / 472.2 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.139e-06/0.1011, allocations: 128 / 472.2 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.698e-05/0.1011, allocations: 8 kB / 472.2 MB, free: 12.03 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001505/0.1012, allocations: 35.91 kB / 472.3 MB, free: 11.99 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-06/0.1013, allocations: 0 / 472.3 MB, free: 11.99 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005345/0.1018, allocations: 91.77 kB / 472.4 MB, free: 11.9 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.044e-05/0.1018, allocations: 15.98 kB / 472.4 MB, free: 11.89 MB / 314.7 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.0002384/0.1021, allocations: 154.4 kB / 472.5 MB, free: 11.73 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.932e-05/0.1021, allocations: 23.72 kB / 472.6 MB, free: 11.7 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005795/0.1027, allocations: 243.4 kB / 472.8 MB, free: 11.46 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.347e-06/0.1027, allocations: 0 / 472.8 MB, free: 11.46 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.1028, allocations: 0 / 472.8 MB, free: 11.46 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.1028, allocations: 4 kB / 472.8 MB, free: 11.46 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009747/0.1037, allocations: 0.655 MB / 473.5 MB, free: 10.74 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.1038, allocations: 0 / 473.5 MB, free: 10.74 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001581/0.1039, allocations: 35.91 kB / 473.5 MB, free: 10.71 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.68e-06/0.1039, allocations: 4 kB / 473.5 MB, free: 10.7 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.766e-05/0.104, allocations: 4.031 kB / 473.5 MB, free: 10.7 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.104, allocations: 3.938 kB / 473.5 MB, free: 10.7 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.104, allocations: 4 kB / 473.5 MB, free: 10.69 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009783/0.1138, allocations: 3.124 MB / 476.6 MB, free: 7.402 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001112/0.1139, allocations: 108.8 kB / 476.7 MB, free: 7.277 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.097e-05/0.114, allocations: 8 kB / 476.7 MB, free: 7.27 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000572/0.1146, allocations: 83.97 kB / 476.8 MB, free: 7.188 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002724/0.1149, allocations: 119.8 kB / 476.9 MB, free: 7.07 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.628e-05/0.1149, allocations: 15.94 kB / 477 MB, free: 7.055 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003059/0.1152, allocations: 273.9 kB / 477.2 MB, free: 6.785 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1152, allocations: 0 / 477.2 MB, free: 6.785 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004838/0.1157, allocations: 87.84 kB / 477.3 MB, free: 6.699 MB / 314.7 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.0005799/0.1163, allocations: 267 kB / 477.6 MB, free: 6.512 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005382/0.1169, allocations: 203.8 kB / 477.8 MB, free: 6.312 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.1169, allocations: 0 / 477.8 MB, free: 6.312 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003026/0.1172, allocations: 135.8 kB / 477.9 MB, free: 6.18 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003746/0.1176, allocations: 36.34 kB / 477.9 MB, free: 6.145 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002084/0.1197, allocations: 0.8889 MB / 478.8 MB, free: 5.215 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003954/0.1201, allocations: 0.7677 MB / 479.6 MB, free: 4.418 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001734/0.1203, allocations: 41.53 kB / 479.6 MB, free: 4.379 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001102/0.1204, allocations: 19.44 kB / 479.7 MB, free: 4.359 MB / 314.7 MB Notification: Performance of SimCode: time 5.71e-07/0.1204, allocations: 0 / 479.7 MB, free: 4.359 MB / 314.7 MB Notification: Performance of Templates: time 0.1653/0.2857, allocations: 4.52 MB / 484.2 MB, free: 28.64 MB / 314.7 MB make -j1 -f PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.makefile (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)