Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.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.BatteryDischargeChargeFromMSL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=72000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL") translateModel(PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=72000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004129/0.004129, allocations: 92.41 kB / 15.92 MB, free: 6.301 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.0009848/0.0009849, allocations: 198.2 kB / 16.83 MB, free: 6.234 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.2/1.2, allocations: 222.9 MB / 240.5 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.1533/0.1533, allocations: 8.094 MB / 298.7 MB, free: 2.066 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001013/0.001013, allocations: 59.91 kB / 361 MB, free: 13.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08333/0.08436, allocations: 51.51 MB / 412.5 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL): time 0.003984/0.08838, allocations: 3.39 MB / 415.9 MB, free: 6.727 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00165/0.09005, allocations: 1.306 MB / 417.2 MB, free: 5.414 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001373/0.0902, allocations: 8 kB / 417.2 MB, free: 5.406 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004394/0.09065, allocations: 155.3 kB / 417.4 MB, free: 5.254 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002985/0.09096, allocations: 159 kB / 417.6 MB, free: 5.098 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004155/0.09138, allocations: 219.2 kB / 417.8 MB, free: 4.887 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004371/0.09183, allocations: 0.5298 MB / 418.3 MB, free: 4.355 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001909/0.09203, allocations: 140.7 kB / 418.4 MB, free: 4.215 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001705/0.09221, allocations: 187.3 kB / 418.6 MB, free: 4.031 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002166/0.09243, allocations: 215 kB / 418.8 MB, free: 3.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.358e-05/0.09249, allocations: 28 kB / 418.9 MB, free: 3.793 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001487/0.09265, allocations: 71.86 kB / 418.9 MB, free: 3.723 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001691/0.09282, allocations: 143.6 kB / 419.1 MB, free: 3.582 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001861/0.09302, allocations: 242.6 kB / 419.3 MB, free: 3.344 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004671/0.09349, allocations: 0.619 MB / 419.9 MB, free: 2.723 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.895e-06/0.0935, allocations: 0 / 419.9 MB, free: 2.723 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.41e-07/0.09351, allocations: 0 / 419.9 MB, free: 2.723 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.911e-06/0.09352, allocations: 0 / 419.9 MB, free: 2.723 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: 65 * Number of variables: 65 Notification: Performance of Generate backend data structure: time 0.001892/0.09542, allocations: 1.005 MB / 420.9 MB, free: 1.668 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.029e-05/0.09546, allocations: 16.03 kB / 420.9 MB, free: 1.652 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.945e-05/0.09556, allocations: 52.28 kB / 421 MB, free: 1.602 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005697/0.09614, allocations: 494.4 kB / 421.5 MB, free: 1.078 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002329/0.09638, allocations: 53.08 kB / 421.5 MB, free: 1.023 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.995e-05/0.09644, allocations: 39.86 kB / 421.6 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006603/0.09711, allocations: 401.5 kB / 422 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.768e-06/0.09713, allocations: 0 / 422 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.515e-05/0.09717, allocations: 20 kB / 422 MB, free: 0.543 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.796e-06/0.09718, allocations: 8 kB / 422 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005129/0.0977, allocations: 262 kB / 422.2 MB, free: 288 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002134/0.09985, allocations: 1.531 MB / 423.8 MB, free: 14.65 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007142/0.1006, allocations: 311.5 kB / 424.1 MB, free: 14.32 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000275/0.1009, allocations: 117 kB / 424.2 MB, free: 14.2 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.229e-05/0.1009, allocations: 11.98 kB / 424.2 MB, free: 14.19 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.38e-05/0.1009, allocations: 38.5 kB / 424.2 MB, free: 14.14 MB / 366.1 MB Notification: Performance of pre-optimization done (n=13): time 1.272e-06/0.1009, allocations: 4 kB / 424.2 MB, free: 14.14 MB / 366.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008623/0.1018, allocations: 333 kB / 424.6 MB, free: 13.81 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001332/0.102, allocations: 209.6 kB / 424.8 MB, free: 13.55 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000635/0.1026, allocations: 0.5798 MB / 425.4 MB, free: 12.96 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.384e-05/0.1026, allocations: 29.7 kB / 425.4 MB, free: 12.92 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001643/0.1028, allocations: 259.8 kB / 425.6 MB, free: 12.66 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.875e-05/0.1028, allocations: 43.3 kB / 425.7 MB, free: 12.62 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.637e-05/0.1029, allocations: 49.7 kB / 425.7 MB, free: 12.57 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001236/0.1031, allocations: 358.8 kB / 426.1 MB, free: 12.21 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002767/0.1034, allocations: 107.9 kB / 426.2 MB, free: 12.1 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003412/0.1037, allocations: 227.5 kB / 426.4 MB, free: 11.83 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004543/0.1042, allocations: 221.2 kB / 426.6 MB, free: 11.58 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.1042, allocations: 0 / 426.6 MB, free: 11.58 MB / 366.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006811/0.1049, allocations: 328.5 kB / 426.9 MB, free: 11.25 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/0.1049, allocations: 4 kB / 426.9 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.787e-06/0.1049, allocations: 7.938 kB / 427 MB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.495e-05/0.1049, allocations: 4 kB / 427 MB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002305/0.1052, allocations: 47.91 kB / 427 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.826e-06/0.1052, allocations: 4 kB / 427 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005571/0.1057, allocations: 115.7 kB / 427.1 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.604e-05/0.1058, allocations: 8 kB / 427.1 MB, free: 11.07 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 3 (pulseSeries.on2,pulseSeries.on1,battery.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 24 * 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.0001814/0.106, allocations: 181.7 kB / 427.3 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.818e-05/0.106, allocations: 47.53 kB / 427.4 MB, free: 10.83 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006928/0.1067, allocations: 285.1 kB / 427.6 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.1068, allocations: 0 / 427.6 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.1068, allocations: 4 kB / 427.6 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.496e-06/0.1068, allocations: 4 kB / 427.6 MB, free: 10.54 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001122/0.1079, allocations: 0.776 MB / 428.4 MB, free: 9.707 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.1079, allocations: 128 / 428.4 MB, free: 9.707 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001743/0.1081, allocations: 40 kB / 428.5 MB, free: 9.668 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.46e-06/0.1081, allocations: 4.094 kB / 428.5 MB, free: 9.664 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.996e-05/0.1081, allocations: 7.938 kB / 428.5 MB, free: 9.656 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.774e-06/0.1082, allocations: 0 / 428.5 MB, free: 9.656 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1082, allocations: 0 / 428.5 MB, free: 9.656 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009144/0.1091, allocations: 495.5 kB / 428.9 MB, free: 9.152 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00016/0.1093, allocations: 156.5 kB / 429.1 MB, free: 8.98 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.431e-05/0.1093, allocations: 8 kB / 429.1 MB, free: 8.973 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005899/0.1099, allocations: 99.92 kB / 429.2 MB, free: 8.875 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003034/0.1102, allocations: 123.8 kB / 429.3 MB, free: 8.754 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.256e-05/0.1103, allocations: 16 kB / 429.3 MB, free: 8.738 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004423/0.1107, allocations: 427.1 kB / 429.8 MB, free: 8.324 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1107, allocations: 0 / 429.8 MB, free: 8.324 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003709/0.1111, allocations: 103.8 kB / 429.9 MB, free: 8.223 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (battery.limIntegrator.y) * 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.000713/0.1118, allocations: 357 kB / 430.2 MB, free: 8 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006295/0.1125, allocations: 259.6 kB / 430.5 MB, free: 7.75 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.1125, allocations: 0 / 430.5 MB, free: 7.75 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003492/0.1128, allocations: 155.8 kB / 430.6 MB, free: 7.598 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005706/0.1134, allocations: 114.4 kB / 430.7 MB, free: 7.488 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001477/0.1149, allocations: 0.9762 MB / 431.7 MB, free: 6.477 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003189/0.1152, allocations: 0.827 MB / 432.5 MB, free: 5.625 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002173/0.1154, allocations: 67.25 kB / 432.6 MB, free: 5.559 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001181/0.1156, allocations: 39.38 kB / 432.6 MB, free: 5.52 MB / 366.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1156, allocations: 0 / 432.6 MB, free: 5.52 MB / 366.1 MB Notification: Performance of Templates: time 0.1465/0.2621, allocations: 6.91 MB / 439.5 MB, free: 56.88 MB / 366.1 MB make -j1 -f PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.makefile (rm -f PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe ; mkfifo PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe >> ../files/PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.sim & ./PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe 2>&1)