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.0008992/0.0008993, allocations: 100.3 kB / 15.73 MB, free: 436 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.0009569/0.000957, allocations: 178.2 kB / 16.61 MB, free: 6.418 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.268/1.268, allocations: 223.2 MB / 240.6 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.1783/0.1783, allocations: 8.088 MB / 299.8 MB, free: 2.867 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003101/0.0003102, allocations: 16 kB / 362.8 MB, free: 13.28 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09966/0.09998, allocations: 52.51 MB / 415.3 MB, free: 8.727 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeCharge): time 0.002672/0.1027, allocations: 1.934 MB / 417.2 MB, free: 6.781 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009847/0.1037, allocations: 490.7 kB / 417.7 MB, free: 6.301 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001885/0.1039, allocations: 4 kB / 417.7 MB, free: 6.297 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003566/0.1043, allocations: 87.55 kB / 417.8 MB, free: 6.211 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002705/0.1046, allocations: 67.81 kB / 417.9 MB, free: 6.145 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002128/0.1048, allocations: 63.86 kB / 417.9 MB, free: 6.082 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002657/0.1051, allocations: 167.7 kB / 418.1 MB, free: 5.918 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001838/0.1053, allocations: 85.31 kB / 418.2 MB, free: 5.836 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000136/0.1054, allocations: 83.7 kB / 418.2 MB, free: 5.754 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001881/0.1056, allocations: 103.6 kB / 418.3 MB, free: 5.652 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.928e-05/0.1057, allocations: 12 kB / 418.4 MB, free: 5.641 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001494/0.1058, allocations: 59.8 kB / 418.4 MB, free: 5.582 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001363/0.106, allocations: 83.77 kB / 418.5 MB, free: 5.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.684e-05/0.1061, allocations: 69.58 kB / 418.6 MB, free: 5.426 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003397/0.1064, allocations: 307.5 kB / 418.9 MB, free: 5.125 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.1064, allocations: 7.938 kB / 418.9 MB, free: 5.117 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1064, allocations: 3.938 kB / 418.9 MB, free: 5.113 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.188e-05/0.1065, allocations: 0 / 418.9 MB, free: 5.113 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.002023/0.1085, allocations: 0.8145 MB / 419.7 MB, free: 4.246 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.864e-05/0.1085, allocations: 8.031 kB / 419.7 MB, free: 4.238 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001358/0.1087, allocations: 35.58 kB / 419.7 MB, free: 4.203 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005603/0.1092, allocations: 338.4 kB / 420.1 MB, free: 3.832 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.139e-05/0.1093, allocations: 8.328 kB / 420.1 MB, free: 3.824 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.449e-05/0.1093, allocations: 16 kB / 420.1 MB, free: 3.809 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005241/0.1099, allocations: 286.4 kB / 420.4 MB, free: 3.504 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.679e-06/0.1099, allocations: 0 / 420.4 MB, free: 3.504 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.899e-05/0.1099, allocations: 8 kB / 420.4 MB, free: 3.496 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.1099, allocations: 4 kB / 420.4 MB, free: 3.492 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003886/0.1103, allocations: 204.1 kB / 420.6 MB, free: 3.293 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001385/0.1117, allocations: 0.8532 MB / 421.4 MB, free: 2.375 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000587/0.1123, allocations: 319.6 kB / 421.7 MB, free: 2.035 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.678e-05/0.1124, allocations: 0 / 421.7 MB, free: 2.035 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.865e-05/0.1124, allocations: 38.52 kB / 421.8 MB, free: 1.988 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.082e-06/0.1124, allocations: 0 / 421.8 MB, free: 1.988 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.0006962/0.1131, allocations: 297.3 kB / 422.1 MB, free: 1.691 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001107/0.1132, allocations: 213.6 kB / 422.3 MB, free: 1.434 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004295/0.1137, allocations: 358.7 kB / 422.6 MB, free: 1.078 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.725e-05/0.1137, allocations: 29.7 kB / 422.7 MB, free: 1.043 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001206/0.1138, allocations: 176 kB / 422.8 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.051e-05/0.1139, allocations: 39.39 kB / 422.9 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.358e-05/0.1139, allocations: 4 kB / 422.9 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001362/0.1141, allocations: 334.8 kB / 423.2 MB, free: 500 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002054/0.1143, allocations: 91.88 kB / 423.3 MB, free: 408 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002539/0.1145, allocations: 158.8 kB / 423.4 MB, free: 224 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001636/0.1147, allocations: 56.23 kB / 423.5 MB, free: 168 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.1147, allocations: 0 / 423.5 MB, free: 168 kB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.1735/0.2882, allocations: 216.5 kB / 423.7 MB, free: 41.08 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.142e-05/0.2883, allocations: 7 kB / 423.7 MB, free: 41.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.2883, allocations: 1.891 kB / 423.7 MB, free: 41.08 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.712e-05/0.2883, allocations: 0 / 423.7 MB, free: 41.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001766/0.2885, allocations: 35.11 kB / 423.8 MB, free: 41.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.854e-06/0.2885, allocations: 1.5 kB / 423.8 MB, free: 41.08 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005584/0.2891, allocations: 130.4 kB / 423.9 MB, free: 41.08 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.65e-05/0.2891, allocations: 8.438 kB / 423.9 MB, free: 41.08 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: 2 * Number of states: 0 () * 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 initialization (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002426/0.2893, allocations: 160.2 kB / 424 MB, free: 40.97 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.467e-05/0.2894, allocations: 21.06 kB / 424.1 MB, free: 40.97 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005363/0.29, allocations: 257.9 kB / 424.3 MB, free: 40.93 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.958e-06/0.29, allocations: 3.781 kB / 424.3 MB, free: 40.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.29, allocations: 0 / 424.3 MB, free: 40.93 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.29, allocations: 0.625 kB / 424.3 MB, free: 40.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007999/0.2908, allocations: 0.6453 MB / 425 MB, free: 40.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.2908, allocations: 5.969 kB / 425 MB, free: 40.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001512/0.291, allocations: 40.02 kB / 425 MB, free: 40.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.291, allocations: 0.9375 kB / 425 MB, free: 40.64 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.687e-05/0.291, allocations: 4.906 kB / 425 MB, free: 40.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.724e-06/0.291, allocations: 1.375 kB / 425 MB, free: 40.64 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.291, allocations: 0 / 425 MB, free: 40.64 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006358/0.2916, allocations: 451.2 kB / 425.5 MB, free: 40.51 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.412e-05/0.2917, allocations: 111.7 kB / 425.6 MB, free: 40.41 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.652e-05/0.2918, allocations: 8.031 kB / 425.6 MB, free: 40.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005141/0.2923, allocations: 117.5 kB / 425.7 MB, free: 40.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002117/0.2925, allocations: 130.2 kB / 425.8 MB, free: 40.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.389e-05/0.2925, allocations: 3.031 kB / 425.8 MB, free: 40.41 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002161/0.2928, allocations: 274.5 kB / 426.1 MB, free: 40.33 MB / 350.1 MB Notification: Performance of sort global known variables: time 6.31e-07/0.2928, allocations: 0 / 426.1 MB, free: 40.33 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003065/0.2931, allocations: 74.72 kB / 426.2 MB, free: 40.33 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005013/0.2936, allocations: 264.4 kB / 426.4 MB, free: 40.23 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004371/0.294, allocations: 204.9 kB / 426.6 MB, free: 40.23 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.294, allocations: 0 / 426.6 MB, free: 40.23 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002257/0.2943, allocations: 131.5 kB / 426.8 MB, free: 40.23 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002185/0.2945, allocations: 24.45 kB / 426.8 MB, free: 40.23 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001502/0.296, allocations: 0.7722 MB / 427.5 MB, free: 39.91 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001622/0.2962, allocations: 0.7664 MB / 428.3 MB, free: 39.21 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001286/0.2963, allocations: 43.16 kB / 428.4 MB, free: 39.21 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.901e-05/0.2964, allocations: 23.59 kB / 428.4 MB, free: 39.2 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.2964, allocations: 0 / 428.4 MB, free: 39.2 MB / 350.1 MB Notification: Performance of Templates: time 0.005975/0.3024, allocations: 4.139 MB / 432.5 MB, free: 38.95 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: