Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.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.Examples.UsingBatteries.ChargingBatteries,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries") translateModel(PowerSysPro.Examples.UsingBatteries.ChargingBatteries,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001084/0.001084, allocations: 100.8 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.002301/0.0023, allocations: 181.6 kB / 16.62 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.456/1.456, allocations: 223.2 MB / 240.6 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.2383/0.2383, allocations: 8.095 MB / 299.8 MB, free: 2.922 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003536/0.0003537, allocations: 8 kB / 362.8 MB, free: 13.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.131/0.1313, allocations: 52.51 MB / 415.3 MB, free: 8.742 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.ChargingBatteries): time 0.0056/0.137, allocations: 3.914 MB / 419.2 MB, free: 4.809 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003558/0.1406, allocations: 1.507 MB / 420.7 MB, free: 3.297 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007782/0.1414, allocations: 12 kB / 420.7 MB, free: 3.285 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001497/0.1429, allocations: 0.6855 MB / 421.4 MB, free: 2.598 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001605/0.1445, allocations: 0.6041 MB / 422 MB, free: 1.992 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002654/0.1472, allocations: 0.8798 MB / 422.9 MB, free: 1.113 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002155/0.1494, allocations: 0.768 MB / 423.6 MB, free: 352 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007914/0.1502, allocations: 307.7 kB / 423.9 MB, free: 28 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2523/0.4025, allocations: 480.9 kB / 424.4 MB, free: 35.44 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001065/0.4037, allocations: 0.6806 MB / 425.1 MB, free: 35.44 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001404/0.4038, allocations: 56.69 kB / 425.2 MB, free: 35.44 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006908/0.4045, allocations: 242.3 kB / 425.4 MB, free: 35.44 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006017/0.4051, allocations: 0.8969 MB / 426.3 MB, free: 35.44 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003635/0.4055, allocations: 451.1 kB / 426.7 MB, free: 35.41 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002001/0.4075, allocations: 2.649 MB / 429.4 MB, free: 35.23 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.825e-06/0.4075, allocations: 0 / 429.4 MB, free: 35.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.4075, allocations: 0 / 429.4 MB, free: 35.23 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.728e-05/0.4076, allocations: 0 / 429.4 MB, free: 35.23 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: 159 * Number of variables: 159 Notification: Performance of Generate backend data structure: time 0.006003/0.4136, allocations: 2.991 MB / 432.4 MB, free: 33.78 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.84e-05/0.4136, allocations: 12.08 kB / 432.4 MB, free: 33.77 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004217/0.4141, allocations: 296 kB / 432.7 MB, free: 33.62 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002902/0.417, allocations: 2.053 MB / 434.7 MB, free: 33.11 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001538/0.4171, allocations: 220.1 kB / 434.9 MB, free: 32.92 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001069/0.4173, allocations: 70.77 kB / 435 MB, free: 32.92 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001635/0.4189, allocations: 1.012 MB / 436 MB, free: 32.68 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.827e-05/0.4189, allocations: 1.5 kB / 436 MB, free: 32.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.244e-05/0.419, allocations: 32.22 kB / 436.1 MB, free: 32.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.463e-05/0.419, allocations: 20.14 kB / 436.1 MB, free: 32.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00132/0.4203, allocations: 0.7114 MB / 436.8 MB, free: 32.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006772/0.4271, allocations: 4.906 MB / 441.7 MB, free: 31.78 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00204/0.4292, allocations: 1.422 MB / 443.1 MB, free: 31.17 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001463/0.4294, allocations: 96.94 kB / 443.2 MB, free: 31.08 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.841e-05/0.4294, allocations: 44.12 kB / 443.2 MB, free: 31.04 MB / 350.1 MB Notification: Performance of pre-optimization done (n=64): time 2.755e-06/0.4294, allocations: 0 / 443.2 MB, free: 31.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=64): time 0.004357/0.4338, allocations: 1.731 MB / 445 MB, free: 30.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001214/0.4339, allocations: 0.5948 MB / 445.6 MB, free: 29.96 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004989/0.4389, allocations: 4.885 MB / 450.5 MB, free: 28.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001002/0.439, allocations: 43.45 kB / 450.5 MB, free: 28.36 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007575/0.4398, allocations: 1.129 MB / 451.6 MB, free: 27.5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000144/0.4399, allocations: 219.1 kB / 451.8 MB, free: 27.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.237e-05/0.44, allocations: 16.19 kB / 451.9 MB, free: 27.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.02e-05/0.44, allocations: 330.3 kB / 452.2 MB, free: 27.01 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006475/0.4407, allocations: 346.6 kB / 452.5 MB, free: 26.89 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007256/0.4414, allocations: 0.5607 MB / 453.1 MB, free: 26.54 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006454/0.4421, allocations: 378.7 kB / 453.5 MB, free: 26.38 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.4421, allocations: 3.031 kB / 453.5 MB, free: 26.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002671/0.4448, allocations: 1.283 MB / 454.7 MB, free: 25.85 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.066e-05/0.4448, allocations: 6.469 kB / 454.7 MB, free: 25.85 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.807e-06/0.4448, allocations: 0 / 454.7 MB, free: 25.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001092/0.4459, allocations: 255.7 kB / 455 MB, free: 25.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000686/0.4466, allocations: 189.2 kB / 455.2 MB, free: 25.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002815/0.4494, allocations: 2.526 MB / 457.7 MB, free: 23.85 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001559/0.451, allocations: 133.4 kB / 457.8 MB, free: 23.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.515e-05/0.4511, allocations: 18.84 kB / 457.9 MB, free: 23.8 MB / 350.1 MB Warning: Assuming fixed start value for the following 3 variables: bat3.battery.integrator.q:VARIABLE(flow=false start = bat3.battery.SOC_start fixed = true ) "Charge as current integration" type: Real bat2.battery.integrator.q:VARIABLE(flow=false start = bat2.battery.SOC_start fixed = true ) "Charge as current integration" type: Real bat1.battery.integrator.q:VARIABLE(flow=false start = bat1.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: 5 * Number of states: 0 () * Number of discrete variables: 1 (charging.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 66 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 6} Notification: Performance of prepare postOptimizeDAE: time 0.001793/0.4529, allocations: 0.9541 MB / 458.8 MB, free: 23.39 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005851/0.4535, allocations: 265.5 kB / 459.1 MB, free: 23.24 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003139/0.4566, allocations: 1.32 MB / 460.4 MB, free: 22.75 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.03e-05/0.4567, allocations: 6.562 kB / 460.4 MB, free: 22.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.4567, allocations: 1.156 kB / 460.4 MB, free: 22.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.163e-06/0.4567, allocations: 3.516 kB / 460.4 MB, free: 22.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007084/0.4638, allocations: 3.396 MB / 463.8 MB, free: 21.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/0.4638, allocations: 0 / 463.8 MB, free: 21.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007156/0.4645, allocations: 162.2 kB / 464 MB, free: 21.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001137/0.4657, allocations: 249.3 kB / 464.2 MB, free: 21.23 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.289e-05/0.4657, allocations: 12.28 kB / 464.2 MB, free: 21.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003061/0.4688, allocations: 2.512 MB / 466.7 MB, free: 19.28 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/0.4688, allocations: 0 / 466.7 MB, free: 19.28 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004353/0.4732, allocations: 1.764 MB / 468.5 MB, free: 18.48 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001612/0.4748, allocations: 0.5273 MB / 469 MB, free: 18.15 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003404/0.4752, allocations: 17.5 kB / 469 MB, free: 18.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008859/0.4761, allocations: 105.5 kB / 469.1 MB, free: 18.12 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000231/0.4763, allocations: 78.12 kB / 469.2 MB, free: 18.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.606e-05/0.4764, allocations: 20.38 kB / 469.2 MB, free: 18.11 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.006483/0.4829, allocations: 3.517 MB / 472.7 MB, free: 16.95 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.4829, allocations: 0 / 472.7 MB, free: 16.95 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002061/0.485, allocations: 362.5 kB / 473.1 MB, free: 16.89 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (bat1.battery.integrator.q,bat2.battery.integrator.q,bat3.battery.integrator.q) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 54 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007974/0.4858, allocations: 300.5 kB / 473.4 MB, free: 16.75 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002357/0.4881, allocations: 1.017 MB / 474.4 MB, free: 16.31 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.394e-06/0.4882, allocations: 6.328 kB / 474.4 MB, free: 16.31 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001253/0.4894, allocations: 0.6143 MB / 475 MB, free: 16.01 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001483/0.4909, allocations: 191.5 kB / 475.2 MB, free: 15.89 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0105/0.5014, allocations: 5.592 MB / 480.8 MB, free: 13.38 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00191/0.5034, allocations: 1.871 MB / 482.7 MB, free: 12.42 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001206/0.5046, allocations: 360.5 kB / 483 MB, free: 12.38 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003969/0.505, allocations: 122 kB / 483.2 MB, free: 12.36 MB / 350.1 MB Notification: Performance of SimCode: time 9.72e-07/0.505, allocations: 4 kB / 483.2 MB, free: 12.36 MB / 350.1 MB Notification: Performance of Templates: time 0.03825/0.5433, allocations: 23.42 MB / 0.4947 GB, free: 6.984 MB / 366.1 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.makefile Environment - environmentSimulation: (rm -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.sim & ./PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.pipe 2>&1) Environment - environmentSimulation: