Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.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.OneBatteryOneLineOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad") translateModel(PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009368/0.0009365, allocations: 102.8 kB / 16.07 MB, free: 32 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.000994/0.000994, allocations: 183.2 kB / 16.96 MB, free: 6.668 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.476/1.476, allocations: 223.3 MB / 241 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.1979/0.1979, allocations: 8.087 MB / 300.2 MB, free: 2.879 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003408/0.0003409, allocations: 8 kB / 363.5 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1255/0.1259, allocations: 52.52 MB / 416 MB, free: 8.391 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad): time 0.004557/0.1305, allocations: 2.789 MB / 418.8 MB, free: 5.582 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002519/0.1331, allocations: 1.152 MB / 419.9 MB, free: 4.426 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000466/0.1336, allocations: 8 kB / 420 MB, free: 4.418 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001293/0.1349, allocations: 419.1 kB / 420.4 MB, free: 4.008 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009569/0.1359, allocations: 247.1 kB / 420.6 MB, free: 3.766 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00215/0.1381, allocations: 0.9265 MB / 421.5 MB, free: 2.836 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001055/0.1391, allocations: 0.4944 MB / 422 MB, free: 2.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003305/0.1395, allocations: 140.5 kB / 422.2 MB, free: 2.203 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003643/0.1398, allocations: 195.3 kB / 422.4 MB, free: 2.012 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005772/0.1404, allocations: 338.9 kB / 422.7 MB, free: 1.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.548e-05/0.1405, allocations: 24 kB / 422.7 MB, free: 1.656 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006278/0.1412, allocations: 235.8 kB / 422.9 MB, free: 1.426 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002879/0.1415, allocations: 331 kB / 423.3 MB, free: 1.102 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003891/0.1419, allocations: 431.1 kB / 423.7 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2641/0.406, allocations: 1.247 MB / 424.9 MB, free: 36.77 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.4061, allocations: 0 / 424.9 MB, free: 36.77 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.745e-06/0.4061, allocations: 0 / 424.9 MB, free: 36.77 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.801e-05/0.4061, allocations: 0 / 424.9 MB, free: 36.77 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.003016/0.4091, allocations: 1.388 MB / 426.3 MB, free: 36.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.4092, allocations: 9.406 kB / 426.3 MB, free: 36.04 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001533/0.4094, allocations: 105 kB / 426.4 MB, free: 35.98 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009825/0.4103, allocations: 0.8793 MB / 427.3 MB, free: 35.62 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.098e-05/0.4104, allocations: 79.31 kB / 427.4 MB, free: 35.55 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.002e-05/0.4105, allocations: 30.09 kB / 427.4 MB, free: 35.55 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007069/0.4112, allocations: 457.5 kB / 427.9 MB, free: 35.46 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.183e-05/0.4112, allocations: 7.906 kB / 427.9 MB, free: 35.45 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.158e-05/0.4113, allocations: 12.81 kB / 427.9 MB, free: 35.45 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.817e-06/0.4113, allocations: 6.594 kB / 427.9 MB, free: 35.45 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006626/0.412, allocations: 333.1 kB / 428.2 MB, free: 35.45 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002918/0.4149, allocations: 2.156 MB / 430.4 MB, free: 34.81 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009896/0.4159, allocations: 494.1 kB / 430.9 MB, free: 34.69 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004066/0.4163, allocations: 219.8 kB / 431.1 MB, free: 34.68 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001286/0.4165, allocations: 83.88 kB / 431.2 MB, free: 34.58 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.467e-05/0.4165, allocations: 53.44 kB / 431.2 MB, free: 34.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 2.064e-06/0.4165, allocations: 0 / 431.2 MB, free: 34.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.002328/0.4189, allocations: 0.8387 MB / 432 MB, free: 34.34 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.049e-05/0.4189, allocations: 240.9 kB / 432.3 MB, free: 34.05 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002145/0.4211, allocations: 1.731 MB / 434 MB, free: 33.9 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.203e-05/0.4212, allocations: 47.12 kB / 434.1 MB, free: 33.86 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004081/0.4216, allocations: 437.3 kB / 434.5 MB, free: 33.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.708e-05/0.4217, allocations: 97.64 kB / 434.6 MB, free: 33.68 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.642e-05/0.4217, allocations: 34.42 kB / 434.6 MB, free: 33.67 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.223e-05/0.4218, allocations: 319.2 kB / 434.9 MB, free: 33.36 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003289/0.4222, allocations: 162.5 kB / 435.1 MB, free: 33.36 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003776/0.4225, allocations: 256.5 kB / 435.3 MB, free: 33.27 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003478/0.426, allocations: 0.984 MB / 436.3 MB, free: 33.21 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.426, allocations: 0 / 436.3 MB, free: 33.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001384/0.4274, allocations: 0.6131 MB / 436.9 MB, free: 33.1 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.94e-05/0.4275, allocations: 10.47 kB / 436.9 MB, free: 33.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.4275, allocations: 0 / 436.9 MB, free: 33.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006218/0.4281, allocations: 142.3 kB / 437.1 MB, free: 33.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002884/0.4284, allocations: 82 kB / 437.2 MB, free: 33.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00205/0.4305, allocations: 1.889 MB / 439 MB, free: 31.81 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006749/0.4312, allocations: 47.69 kB / 439.1 MB, free: 31.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.966e-05/0.4312, allocations: 13.91 kB / 439.1 MB, free: 31.8 MB / 350.1 MB Warning: Assuming fixed start value for the following 1 variables: bat.battery.integrator.q:VARIABLE(flow=false start = bat.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: 4 * 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 (33): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0006094/0.4318, allocations: 411.9 kB / 439.5 MB, free: 31.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001448/0.432, allocations: 97.34 kB / 439.6 MB, free: 31.62 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001331/0.4333, allocations: 0.602 MB / 440.2 MB, free: 31.45 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.4333, allocations: 7.5 kB / 440.2 MB, free: 31.45 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.4333, allocations: 2.688 kB / 440.2 MB, free: 31.45 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.4333, allocations: 3.422 kB / 440.2 MB, free: 31.45 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002235/0.4356, allocations: 1.497 MB / 441.7 MB, free: 30.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.4356, allocations: 0 / 441.7 MB, free: 30.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002419/0.4359, allocations: 55.92 kB / 441.8 MB, free: 30.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005755/0.4364, allocations: 149.9 kB / 441.9 MB, free: 30.65 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.97e-05/0.4365, allocations: 11.72 kB / 441.9 MB, free: 30.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001704/0.4382, allocations: 1.865 MB / 443.8 MB, free: 29.03 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.4382, allocations: 0.7656 kB / 443.8 MB, free: 29.03 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001561/0.4398, allocations: 0.8466 MB / 444.6 MB, free: 28.6 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002824/0.4401, allocations: 243.2 kB / 444.9 MB, free: 28.42 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001087/0.4402, allocations: 7.094 kB / 444.9 MB, free: 28.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003739/0.4406, allocations: 44.31 kB / 444.9 MB, free: 28.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.078e-05/0.4407, allocations: 33.09 kB / 445 MB, free: 28.4 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.276e-05/0.4407, allocations: 12.28 kB / 445 MB, free: 28.4 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001478/0.4422, allocations: 1.256 MB / 446.2 MB, free: 27.94 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4422, allocations: 0 / 446.2 MB, free: 27.94 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005882/0.4428, allocations: 162.6 kB / 446.4 MB, free: 27.91 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (bat.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 (25): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006229/0.4434, allocations: 291.2 kB / 446.7 MB, free: 27.78 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001104/0.4445, allocations: 0.5243 MB / 447.2 MB, free: 27.53 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.237e-06/0.4446, allocations: 0 / 447.2 MB, free: 27.53 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006036/0.4452, allocations: 346.3 kB / 447.5 MB, free: 27.34 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006452/0.4458, allocations: 84.14 kB / 447.6 MB, free: 27.29 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003152/0.449, allocations: 2.174 MB / 449.8 MB, free: 26.2 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006322/0.4496, allocations: 1.078 MB / 450.9 MB, free: 25.41 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003196/0.45, allocations: 137.9 kB / 451 MB, free: 25.4 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001557/0.4501, allocations: 48.75 kB / 451.1 MB, free: 25.39 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.4501, allocations: 0 / 451.1 MB, free: 25.39 MB / 350.1 MB Notification: Performance of Templates: time 0.01943/0.4696, allocations: 10.19 MB / 461.2 MB, free: 24.74 MB / 350.1 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.makefile Environment - environmentSimulation: (rm -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.sim & ./PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe 2>&1) Environment - environmentSimulation: