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.001123/0.001123, allocations: 107.8 kB / 16.69 MB, free: 5.906 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.001148/0.001148, allocations: 190.7 kB / 17.61 MB, free: 5.473 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.381/1.381, allocations: 222.9 MB / 241.3 MB, free: 15.39 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04811/0.04811, allocations: 8.09 MB / 299.5 MB, free: 6.805 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 67.89 kB / 361.9 MB, free: 8.395 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2057/0.2069, allocations: 51.51 MB / 413.4 MB, free: 25.76 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad): time 0.003785/0.2107, allocations: 3.169 MB / 416.6 MB, free: 22.58 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001315/0.2121, allocations: 1.144 MB / 417.7 MB, free: 21.43 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001492/0.2123, allocations: 8 kB / 417.7 MB, free: 21.42 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006866/0.213, allocations: 424.8 kB / 418.1 MB, free: 21.01 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003482/0.2133, allocations: 243.1 kB / 418.4 MB, free: 20.77 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001374/0.2147, allocations: 0.9225 MB / 419.3 MB, free: 19.84 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005252/0.2152, allocations: 0.5178 MB / 419.8 MB, free: 19.32 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002604/0.2155, allocations: 157.4 kB / 420 MB, free: 19.16 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001981/0.2157, allocations: 235.3 kB / 420.2 MB, free: 18.93 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000379/0.2161, allocations: 375 kB / 420.6 MB, free: 18.57 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.664e-05/0.2162, allocations: 52 kB / 420.6 MB, free: 18.52 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004744/0.2167, allocations: 283.7 kB / 420.9 MB, free: 18.24 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000235/0.2169, allocations: 347.1 kB / 421.2 MB, free: 17.9 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002949/0.2172, allocations: 453.3 kB / 421.7 MB, free: 17.45 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007955/0.218, allocations: 1.072 MB / 422.7 MB, free: 16.38 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.218, allocations: 4 kB / 422.7 MB, free: 16.38 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.218, allocations: 0 / 422.7 MB, free: 16.38 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.189e-05/0.218, allocations: 0 / 422.7 MB, free: 16.38 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.002755/0.2208, allocations: 1.548 MB / 424.3 MB, free: 14.77 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.69e-05/0.2209, allocations: 11.89 kB / 424.3 MB, free: 14.76 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001381/0.221, allocations: 107.6 kB / 424.4 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008305/0.2218, allocations: 0.8757 MB / 425.3 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.666e-05/0.2219, allocations: 80.52 kB / 425.4 MB, free: 13.64 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.665e-05/0.222, allocations: 28.38 kB / 425.4 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006448/0.2226, allocations: 453 kB / 425.8 MB, free: 13.14 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.15e-05/0.2226, allocations: 0 / 425.8 MB, free: 13.14 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.658e-05/0.2227, allocations: 16 kB / 425.9 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.372e-06/0.2227, allocations: 4 kB / 425.9 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005026/0.2232, allocations: 322.1 kB / 426.2 MB, free: 12.8 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002406/0.2256, allocations: 2.139 MB / 428.3 MB, free: 10.54 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008412/0.2265, allocations: 480.3 kB / 428.8 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003597/0.2268, allocations: 209.2 kB / 429 MB, free: 9.84 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001317/0.227, allocations: 97.27 kB / 429.1 MB, free: 9.727 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.903e-05/0.227, allocations: 42.8 kB / 429.1 MB, free: 9.676 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 1.563e-06/0.227, allocations: 7.938 kB / 429.1 MB, free: 9.668 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.002028/0.2291, allocations: 0.8168 MB / 429.9 MB, free: 8.824 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.437e-05/0.2291, allocations: 235.3 kB / 430.2 MB, free: 8.539 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001507/0.2306, allocations: 1.741 MB / 431.9 MB, free: 6.777 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.943e-05/0.2307, allocations: 37.7 kB / 432 MB, free: 6.734 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002638/0.231, allocations: 444.7 kB / 432.4 MB, free: 6.293 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.738e-05/0.231, allocations: 90.66 kB / 432.5 MB, free: 6.203 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001035/0.2311, allocations: 69.59 kB / 432.5 MB, free: 6.129 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.076e-05/0.2312, allocations: 318 kB / 432.9 MB, free: 5.812 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002653/0.2315, allocations: 147.9 kB / 433 MB, free: 5.668 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003062/0.2318, allocations: 250.3 kB / 433.2 MB, free: 5.391 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003254/0.235, allocations: 0.9379 MB / 434.2 MB, free: 4.441 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.2351, allocations: 0 / 434.2 MB, free: 4.441 MB / 302.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001254/0.2363, allocations: 0.6137 MB / 434.8 MB, free: 3.816 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.93e-05/0.2364, allocations: 7.984 kB / 434.8 MB, free: 3.809 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.2364, allocations: 0 / 434.8 MB, free: 3.809 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006413/0.237, allocations: 148.7 kB / 434.9 MB, free: 3.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002837/0.2373, allocations: 75.89 kB / 435 MB, free: 3.586 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001944/0.2393, allocations: 2.032 MB / 437.1 MB, free: 1.418 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004426/0.2397, allocations: 51.72 kB / 437.1 MB, free: 1.367 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.585e-05/0.2398, allocations: 12 kB / 437.1 MB, free: 1.355 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.0004447/0.2402, allocations: 405.6 kB / 437.5 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001237/0.2403, allocations: 94.78 kB / 437.6 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001183/0.2415, allocations: 0.5861 MB / 438.2 MB, free: 268 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.2415, allocations: 3.938 kB / 438.2 MB, free: 264 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.262e-06/0.2416, allocations: 11.94 kB / 438.2 MB, free: 252 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.2416, allocations: 0 / 438.2 MB, free: 252 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002306/0.2439, allocations: 1.471 MB / 439.7 MB, free: 14.71 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.47e-06/0.2439, allocations: 4 kB / 439.7 MB, free: 14.71 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002593/0.2442, allocations: 55.91 kB / 439.7 MB, free: 14.66 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006269/0.2448, allocations: 152.7 kB / 439.9 MB, free: 14.5 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.718e-05/0.2448, allocations: 11.92 kB / 439.9 MB, free: 14.49 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002168/0.247, allocations: 2.012 MB / 441.9 MB, free: 12.34 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/0.247, allocations: 3.938 kB / 441.9 MB, free: 12.34 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001674/0.2487, allocations: 0.8211 MB / 442.7 MB, free: 11.49 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003462/0.2491, allocations: 247.9 kB / 443 MB, free: 11.23 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.807e-05/0.2492, allocations: 4.188 kB / 443 MB, free: 11.23 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003608/0.2495, allocations: 39.91 kB / 443 MB, free: 11.19 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001016/0.2497, allocations: 35.95 kB / 443.1 MB, free: 11.15 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.391e-05/0.2497, allocations: 8 kB / 443.1 MB, free: 11.14 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001518/0.2512, allocations: 1.26 MB / 444.3 MB, free: 9.875 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.2512, allocations: 0 / 444.3 MB, free: 9.875 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005779/0.2518, allocations: 155.8 kB / 444.5 MB, free: 9.723 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.0006576/0.2525, allocations: 279.8 kB / 444.7 MB, free: 9.523 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001167/0.2537, allocations: 0.5256 MB / 445.3 MB, free: 8.984 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/0.2537, allocations: 4 kB / 445.3 MB, free: 8.98 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006481/0.2543, allocations: 342.7 kB / 445.6 MB, free: 8.633 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006009/0.2549, allocations: 84.38 kB / 445.7 MB, free: 8.547 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003242/0.2582, allocations: 2.227 MB / 447.9 MB, free: 6.281 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006198/0.2588, allocations: 1.072 MB / 449 MB, free: 5.18 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001927/0.259, allocations: 59.42 kB / 449 MB, free: 5.121 MB / 318.1 MB Notification: Performance of SimCode: time 3.91e-07/0.259, allocations: 0 / 449 MB, free: 5.121 MB / 318.1 MB Notification: Performance of Templates: time 0.01912/0.2782, allocations: 14.85 MB / 463.9 MB, free: 6.273 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)