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.0007734/0.0007734, allocations: 90.61 kB / 16.71 MB, free: 6.633 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.0008645/0.0008645, allocations: 182 kB / 17.62 MB, free: 6.16 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.321/1.321, allocations: 223.3 MB / 241.7 MB, free: 208 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.03963/0.03963, allocations: 8.106 MB / 300.9 MB, free: 6.77 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0002949/0.000295, allocations: 8 kB / 364.2 MB, free: 7.457 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2117/0.212, allocations: 52.51 MB / 416.7 MB, free: 24.88 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad): time 0.002622/0.2147, allocations: 2.786 MB / 419.5 MB, free: 22.08 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001377/0.2161, allocations: 1.144 MB / 420.6 MB, free: 20.93 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001318/0.2162, allocations: 8 kB / 420.6 MB, free: 20.92 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006714/0.2169, allocations: 420.8 kB / 421 MB, free: 20.51 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003928/0.2173, allocations: 239.1 kB / 421.2 MB, free: 20.28 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001327/0.2187, allocations: 0.9411 MB / 422.2 MB, free: 19.34 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004488/0.2191, allocations: 0.4904 MB / 422.7 MB, free: 18.84 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000212/0.2193, allocations: 136.5 kB / 422.8 MB, free: 18.7 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001556/0.2195, allocations: 199.3 kB / 423 MB, free: 18.51 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003309/0.2198, allocations: 338.9 kB / 423.3 MB, free: 18.18 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.253e-05/0.2199, allocations: 24 kB / 423.4 MB, free: 18.15 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000392/0.2203, allocations: 243.7 kB / 423.6 MB, free: 17.91 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001922/0.2205, allocations: 315.1 kB / 423.9 MB, free: 17.61 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002362/0.2207, allocations: 435 kB / 424.3 MB, free: 17.17 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006399/0.2214, allocations: 1.033 MB / 425.4 MB, free: 16.14 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.2214, allocations: 0 / 425.4 MB, free: 16.14 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2214, allocations: 4 kB / 425.4 MB, free: 16.13 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.107e-06/0.2214, allocations: 0 / 425.4 MB, free: 16.13 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.002545/0.224, allocations: 1.397 MB / 426.8 MB, free: 14.68 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.363e-05/0.224, allocations: 8.031 kB / 426.8 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001348/0.2241, allocations: 111.5 kB / 426.9 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008613/0.225, allocations: 0.868 MB / 427.8 MB, free: 13.64 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.369e-05/0.2251, allocations: 80.53 kB / 427.8 MB, free: 13.55 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.393e-05/0.2252, allocations: 24.38 kB / 427.9 MB, free: 13.53 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006859/0.2258, allocations: 457 kB / 428.3 MB, free: 13.05 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.2259, allocations: 8 kB / 428.3 MB, free: 13.05 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.11e-05/0.2259, allocations: 16 kB / 428.3 MB, free: 13.03 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.855e-06/0.2259, allocations: 8 kB / 428.3 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005487/0.2265, allocations: 326.1 kB / 428.6 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002621/0.2291, allocations: 2.174 MB / 430.8 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009211/0.2301, allocations: 496.3 kB / 431.3 MB, free: 9.898 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003869/0.2305, allocations: 221.2 kB / 431.5 MB, free: 9.68 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001104/0.2306, allocations: 97.2 kB / 431.6 MB, free: 9.566 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.955e-05/0.2306, allocations: 38.8 kB / 431.7 MB, free: 9.52 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 2.234e-06/0.2306, allocations: 0 / 431.7 MB, free: 9.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.002152/0.2328, allocations: 0.8442 MB / 432.5 MB, free: 8.648 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.08e-05/0.2328, allocations: 247.2 kB / 432.7 MB, free: 8.352 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001626/0.2345, allocations: 1.729 MB / 434.5 MB, free: 6.602 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.335e-05/0.2345, allocations: 29.7 kB / 434.5 MB, free: 6.566 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002801/0.2348, allocations: 440.7 kB / 434.9 MB, free: 6.133 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.469e-05/0.2349, allocations: 94.64 kB / 435 MB, free: 6.039 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.907e-05/0.2349, allocations: 37.7 kB / 435.1 MB, free: 5.996 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.644e-05/0.235, allocations: 318 kB / 435.4 MB, free: 5.68 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002979/0.2353, allocations: 159.9 kB / 435.5 MB, free: 5.523 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003338/0.2356, allocations: 262.2 kB / 435.8 MB, free: 5.234 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00339/0.239, allocations: 0.9691 MB / 436.8 MB, free: 4.254 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.2391, allocations: 0 / 436.8 MB, free: 4.254 MB / 302.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001256/0.2403, allocations: 0.6371 MB / 437.4 MB, free: 3.605 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.662e-05/0.2403, allocations: 4 kB / 437.4 MB, free: 3.602 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.2404, allocations: 0 / 437.4 MB, free: 3.602 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000633/0.241, allocations: 144.7 kB / 437.5 MB, free: 3.457 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002982/0.2413, allocations: 75.89 kB / 437.6 MB, free: 3.383 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001838/0.2432, allocations: 1.886 MB / 439.5 MB, free: 1.363 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004006/0.2436, allocations: 59.66 kB / 439.6 MB, free: 1.305 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.387e-05/0.2436, allocations: 8.062 kB / 439.6 MB, free: 1.297 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.0004/0.244, allocations: 411.9 kB / 440 MB, free: 0.8867 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000112/0.2441, allocations: 102.8 kB / 440.1 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001259/0.2454, allocations: 0.5974 MB / 440.7 MB, free: 184 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.506e-06/0.2454, allocations: 0 / 440.7 MB, free: 184 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.235e-06/0.2454, allocations: 4 kB / 440.7 MB, free: 180 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.2454, allocations: 4 kB / 440.7 MB, free: 176 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002436/0.2479, allocations: 1.494 MB / 442.2 MB, free: 14.62 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.578e-06/0.2479, allocations: 3.984 kB / 442.2 MB, free: 14.61 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002761/0.2482, allocations: 59.91 kB / 442.2 MB, free: 14.55 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006433/0.2488, allocations: 152.6 kB / 442.4 MB, free: 14.4 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.527e-05/0.2489, allocations: 8 kB / 442.4 MB, free: 14.39 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002119/0.251, allocations: 1.863 MB / 444.2 MB, free: 12.4 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.898e-06/0.251, allocations: 4.031 kB / 444.2 MB, free: 12.39 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001819/0.2528, allocations: 0.8484 MB / 445.1 MB, free: 11.52 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003297/0.2532, allocations: 239.8 kB / 445.3 MB, free: 11.27 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.846e-05/0.2533, allocations: 8.188 kB / 445.3 MB, free: 11.26 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003874/0.2537, allocations: 51.55 kB / 445.4 MB, free: 11.21 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.793e-05/0.2538, allocations: 31.95 kB / 445.4 MB, free: 11.18 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.361e-05/0.2538, allocations: 11.98 kB / 445.4 MB, free: 11.17 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001607/0.2554, allocations: 1.26 MB / 446.7 MB, free: 9.902 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2554, allocations: 0 / 446.7 MB, free: 9.902 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000555/0.256, allocations: 159.8 kB / 446.8 MB, free: 9.746 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.000667/0.2567, allocations: 270.6 kB / 447.1 MB, free: 9.551 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001229/0.2579, allocations: 0.5219 MB / 447.6 MB, free: 9.016 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.928e-06/0.2579, allocations: 0 / 447.6 MB, free: 9.016 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006758/0.2586, allocations: 354.6 kB / 448 MB, free: 8.656 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006099/0.2592, allocations: 84.41 kB / 448.1 MB, free: 8.57 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003392/0.2626, allocations: 2.253 MB / 450.3 MB, free: 6.281 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007419/0.2634, allocations: 1.08 MB / 451.4 MB, free: 5.172 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001951/0.2636, allocations: 51.42 kB / 451.4 MB, free: 5.121 MB / 318.1 MB Notification: Performance of SimCode: time 2.81e-07/0.2636, allocations: 0 / 451.4 MB, free: 5.121 MB / 318.1 MB Notification: Performance of Templates: time 0.02058/0.2842, allocations: 14.74 MB / 466.2 MB, free: 6.383 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)