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-master/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/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.001164/0.001164, allocations: 105.3 kB / 16.56 MB, free: 6.723 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.001141/0.001141, allocations: 193.9 kB / 17.48 MB, free: 6.027 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.606/1.606, allocations: 222.9 MB / 241.2 MB, free: 15.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04683/0.04683, allocations: 8.108 MB / 299.4 MB, free: 6.965 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001201/0.001201, allocations: 59.91 kB / 361.7 MB, free: 8.637 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2036/0.2048, allocations: 51.53 MB / 413.2 MB, free: 25.86 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad): time 0.003803/0.2087, allocations: 3.168 MB / 416.4 MB, free: 22.68 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001392/0.2101, allocations: 1.16 MB / 417.5 MB, free: 21.52 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001293/0.2102, allocations: 4 kB / 417.5 MB, free: 21.52 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006234/0.2109, allocations: 420.8 kB / 418 MB, free: 21.11 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003187/0.2112, allocations: 255.1 kB / 418.2 MB, free: 20.86 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001272/0.2125, allocations: 0.9538 MB / 419.2 MB, free: 19.9 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003868/0.2129, allocations: 0.4905 MB / 419.7 MB, free: 19.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001831/0.2131, allocations: 140.5 kB / 419.8 MB, free: 19.26 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001359/0.2132, allocations: 207.3 kB / 420 MB, free: 19.06 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003035/0.2135, allocations: 354.9 kB / 420.3 MB, free: 18.71 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.514e-05/0.2136, allocations: 28 kB / 420.4 MB, free: 18.68 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004252/0.214, allocations: 247.8 kB / 420.6 MB, free: 18.44 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001911/0.2142, allocations: 323.1 kB / 420.9 MB, free: 18.12 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002399/0.2145, allocations: 421.4 kB / 421.3 MB, free: 17.71 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006176/0.2151, allocations: 1.061 MB / 422.4 MB, free: 16.65 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.2151, allocations: 0 / 422.4 MB, free: 16.65 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.183e-06/0.2151, allocations: 4 kB / 422.4 MB, free: 16.64 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.047e-06/0.2151, allocations: 0 / 422.4 MB, free: 16.64 MB / 302.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.002754/0.2179, allocations: 1.548 MB / 423.9 MB, free: 15.04 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.653e-05/0.2179, allocations: 12.03 kB / 424 MB, free: 15.03 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001421/0.2181, allocations: 107.6 kB / 424.1 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008877/0.219, allocations: 0.8719 MB / 424.9 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.126e-05/0.2191, allocations: 80.53 kB / 425 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.881e-05/0.2191, allocations: 28.38 kB / 425 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006721/0.2198, allocations: 461 kB / 425.5 MB, free: 13.4 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.2198, allocations: 0 / 425.5 MB, free: 13.4 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.847e-05/0.2199, allocations: 12 kB / 425.5 MB, free: 13.39 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.011e-05/0.2199, allocations: 8 kB / 425.5 MB, free: 13.38 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005296/0.2204, allocations: 318 kB / 425.8 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002544/0.223, allocations: 2.143 MB / 428 MB, free: 10.81 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009146/0.2239, allocations: 476.4 kB / 428.4 MB, free: 10.32 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000418/0.2243, allocations: 213.2 kB / 428.6 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000118/0.2245, allocations: 89.27 kB / 428.7 MB, free: 10 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.186e-05/0.2245, allocations: 42.73 kB / 428.8 MB, free: 9.949 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 1.794e-06/0.2245, allocations: 0 / 428.8 MB, free: 9.949 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.002099/0.2266, allocations: 0.8285 MB / 429.6 MB, free: 9.094 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.071e-05/0.2267, allocations: 235.3 kB / 429.8 MB, free: 8.809 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001624/0.2283, allocations: 1.737 MB / 431.6 MB, free: 7.051 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.961e-05/0.2284, allocations: 33.7 kB / 431.6 MB, free: 7.012 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000272/0.2287, allocations: 440.7 kB / 432 MB, free: 6.578 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.702e-05/0.2287, allocations: 94.66 kB / 432.1 MB, free: 6.484 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000103/0.2288, allocations: 69.59 kB / 432.2 MB, free: 6.41 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.287e-05/0.2289, allocations: 314 kB / 432.5 MB, free: 6.098 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002793/0.2292, allocations: 155.9 kB / 432.6 MB, free: 5.945 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003243/0.2295, allocations: 246.3 kB / 432.9 MB, free: 5.672 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003305/0.2328, allocations: 0.9417 MB / 433.8 MB, free: 4.719 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.2328, allocations: 4 kB / 433.8 MB, free: 4.715 MB / 302.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001444/0.2343, allocations: 0.6098 MB / 434.4 MB, free: 4.094 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.145e-05/0.2343, allocations: 4 kB / 434.4 MB, free: 4.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.936e-06/0.2343, allocations: 4 kB / 434.4 MB, free: 4.086 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006479/0.235, allocations: 144.7 kB / 434.6 MB, free: 3.941 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002951/0.2353, allocations: 67.89 kB / 434.7 MB, free: 3.875 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002056/0.2374, allocations: 1.892 MB / 436.5 MB, free: 1.852 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005806/0.238, allocations: 47.67 kB / 436.6 MB, free: 1.805 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.893e-05/0.238, allocations: 15.98 kB / 436.6 MB, free: 1.789 MB / 302.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.0004927/0.2385, allocations: 405.7 kB / 437 MB, free: 1.383 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001321/0.2386, allocations: 94.78 kB / 437.1 MB, free: 1.289 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001198/0.2399, allocations: 0.5857 MB / 437.7 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.2399, allocations: 4 kB / 437.7 MB, free: 0.6914 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.513e-06/0.2399, allocations: 0 / 437.7 MB, free: 0.6914 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.641e-06/0.2399, allocations: 3.984 kB / 437.7 MB, free: 0.6875 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002309/0.2422, allocations: 1.482 MB / 439.2 MB, free: 15.14 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/0.2422, allocations: 0 / 439.2 MB, free: 15.14 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002762/0.2425, allocations: 55.95 kB / 439.2 MB, free: 15.09 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006513/0.2432, allocations: 152.6 kB / 439.4 MB, free: 14.94 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.946e-05/0.2432, allocations: 11.94 kB / 439.4 MB, free: 14.93 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002167/0.2454, allocations: 1.863 MB / 441.3 MB, free: 12.93 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.117e-06/0.2454, allocations: 0 / 441.3 MB, free: 12.93 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001824/0.2472, allocations: 0.8289 MB / 442.1 MB, free: 12.08 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00043/0.2477, allocations: 239.8 kB / 442.3 MB, free: 11.82 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001008/0.2478, allocations: 12.05 kB / 442.3 MB, free: 11.81 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003768/0.2482, allocations: 31.97 kB / 442.4 MB, free: 11.78 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001178/0.2483, allocations: 35.95 kB / 442.4 MB, free: 11.75 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.518e-05/0.2483, allocations: 8 kB / 442.4 MB, free: 11.74 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001675/0.25, allocations: 1.26 MB / 443.7 MB, free: 10.47 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.25, allocations: 0 / 443.7 MB, free: 10.47 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006137/0.2507, allocations: 147.8 kB / 443.8 MB, free: 10.32 MB / 318.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.0007534/0.2514, allocations: 295.9 kB / 444.1 MB, free: 10.11 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001326/0.2528, allocations: 0.514 MB / 444.6 MB, free: 9.578 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.2528, allocations: 4 kB / 444.6 MB, free: 9.574 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006724/0.2535, allocations: 334.8 kB / 444.9 MB, free: 9.234 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006415/0.2541, allocations: 86.27 kB / 445 MB, free: 9.152 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00354/0.2577, allocations: 2.225 MB / 447.2 MB, free: 6.891 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008071/0.2585, allocations: 1.076 MB / 448.3 MB, free: 5.785 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001982/0.2587, allocations: 55.44 kB / 448.4 MB, free: 5.73 MB / 318.1 MB Notification: Performance of SimCode: time 8.11e-07/0.2587, allocations: 0 / 448.4 MB, free: 5.73 MB / 318.1 MB Notification: Performance of Templates: time 0.02075/0.2795, allocations: 14.84 MB / 463.2 MB, free: 6.895 MB / 334.1 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.makefile (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)